如何用WinDBG掛VMware

Steps

  1. Install a Windows System in VMWare
  2. Delete the Printer and add a new Serial Port
  3. Add a shortcut of WinDBG.
  • Edit the target to C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\windbg.exe” -k com:port=.\pipe\com_1,baud=115200,pipe
  • Run as Administrator
  1. Open GuestOS in VMWare, open CMD as Administrator
  • The {ID} is generated by second command
    • bcdedit /dbgsettings serial baudrate:115200 debugport:1
    • bcdedit /copy {current} /d DebugEntry
    • bcdedit /displayorder {current} {ID}
    • bbcdedit /debug {ID} ON
  1. Restart the virtual machine and choose the DebugEntry.
  2. Run the WinDBG in the starting process of virtual machine.