Search code examples
driverwindbgkernel-mode

Kernel-Mode driver debugging of a physical Machine


On one computer I run Windbg.exe I want connect to this computer an another physical computer And on the other computer install and debug a driver I wrote it.

Is this possible and how?

It should be noted that already I checked my driver on virtual machine and everything works great, but the only physical machine, has a blue screen, so I want to debug the physical machine.


Solution

  • Of course it's possible. You can connect to the target machine using a serial port, Firewire, USB 2 or USB 3 (requires special hardware support, special cable, and I heard it doesn't work more times than it does) or the preferred way if you're using Windows 8 or higher - over Ethernet.

    You use bcdedit on the target computer exactly like you did on your VM and you pass kd.exe or windbg.exe a kernel connection string just like you did when you were debugging your VM - only with another transport.