How to start Windows Kernel debugging on Virtual marchine with Serial port .
Test Setting
Debugger and Debugee have same settings.
|
Basically, Kernel debugging dodel is a diagram that is following <fig .1>.
<fig .1>
Therefore, It needs 2 PC for debugging.
Steps for the Debuggee
In other word, Debuggee is called “Target PC”.
- Power off the VM (debuggee).
- VM Workstation > Setting> click ‘add…’ > click ‘Serial port’
- Choose ‘Named Pipe’ and Enter a pipe name with format. ( ex ‘\\.\pipe\debug’)
- Choose “this is … server “ for the near end.
- Choose “this is … Application” for the Far end.
- Dselect the “Yield on CPU Poll” on the check box
- Click ‘ok’ ( Remeber new added serial Port Number )
- Power on the VM.
After booting - Open ‘Device Manager’
- Expand the ports that is tree item.
- Confirm the new serial port that you added is working nomally.
(Recommend to use view menu ‘hidden device show’. - Check the Properties if it is corrent value or not when you had added a new serial port.
- Setting up the debug mode with a serial port you made before a step.
bcdedit /debug on
bcdedit /dbgsettings serial debugport:2 baudrate:115200
※ And, you can see your debug settings with following command.
(bcdedit /dbgsettings)
|
- and Reboot.
Steps for The Debugger
- Start a Windbg.
- Click on the File > ‘Kernel Debug’
- Move on ‘COM’ tab of the popup window.
- Enter value a pipe name on port. ( ex ‘\\.\pipe\debug’ - you entered before )
- Select the ‘pipe’ check box, then click ‘OK’
- It will printed “Waiting connect..” .
If it still connecting… - Reboot debuggee , and click on the Debug > break .
After it is connected, you want to boot debugee continually. - Click on the Debug > go.
No comments:
Post a Comment