2.4.1 Configure Port Forwarding
Windows Kernel Debugging  /  2 Windows Kernel Debugging Over a Network  /  2.4 Connect Windows Kernel Debugger to the Target  / 

2.4.2 Start WinDbg

To start debugging, run WinDbg on the host system. To debug the early boot, start WinDbg before you tell Simics to start running the simulation. To debug once Windows has booted, start WinDbg once the Simics target shows the Windows desktop. In either case:

  1. Set up outbound port-forwarding in Simics.
  2. Start WinDbg, listening for a connection from Simics.
  3. Run the simulation forward.

To run WinDbg, go to a CMD shell, and start WinDbg from the command line like the following:

> windbg -k net:port=<port-on-host>,key=<key>
  

where:

For example:

C:\WINDOWS\system32>cd C:\Program Files (x86)\Windows Kits\10\Debuggers\x64
C:\Program Files (x86)\Windows Kits\10\Debuggers\x64>windbg -kLine break
net:port=50010,key=1.2.3.4
  

2.4.1 Configure Port Forwarding