The Virtual Machine is XP:
Add a startup Item for debugging and set the baud rate to 115200
You can add the following code to boot. ini:
Multi (0) disk (0) RDISK (0) Partition (1) \ Windows = "microsoftwindows XP Professional"/noexecute = optin/fastdetect/debug/debugport = COM1/baudrate = 115200
The Virtual Machine is win7 Win8:
1. Start a command line window with administrator privileges.
2. Run the following command to copy the current startup entry:
Bcdedit/copy {current}/D "kernel debug"
The string with double quotation marks is the name of the new start entry. If the execution is successful, the following information is displayed:
"This item has been successfully copied to {f349d9f9-660a-11e1-892b-b9453034af9f }."
The content in braces is the guid of The New Start entry, which uniquely identifies the Start entry.
3. Run the following command to start kernel debugging for this startup entry:
Bcdedit/debug {f349d9f9-660a-11e1-892b-b9453034af9f} on
4. Set communication parameters between the target host and the host
Bcdedit/set {f349d9f9-660a-11e1-892b-b9453034af9f} debugtype serial
Bcdedit/set {f349d9f9-660a-11e1-892b-b9453034af9f} debugport 1
Bcdedit/set {f349d9f9-660a-11e1-892b-b9453034af9f} baudrate 115200
5. Execute bcdedit to list the startup items and parameters you just created, and confirm that the above settings have been recorded.
Settings in VMware:
1. Open
"Using aul Machine Settings"
2. In the "hardware" option ----> click "add" to add a serial port
3. "Next", select "output to named pipe" in "Serial Port"
4. "Next", and then set
5. After confirming, go back to the following interface. On the "Virtual Machine Settings" page at the right foot
Select "yield CPU on poll" in Mode
6. After OK, the setting is complete.
Windbg settings
Create a desktop shortcut for windbg, right click-> properties, and add the following quotation marks to the target:
-B-K
COM: pipe, port =\\. \ PIPE \ com_1, resets = 0
Example:
"C: \ Program Files (x86) \ Windows kits \ 8.0 \ debuggers \ x86 \ windbg.exe"-B-K COM: pipe, port = \\. \ PIPE \ com_1, resets = 0
Operation prompt
If the windbg is enabled during the VM system startup, the whole system will be like a dead machine and will not move. It is estimated that after windbg starts, it sets a breakpoint for debugging. Try to press F5 or g to restore the original state.