使用Windbg进行内核驱动调试时,可以使用的连接方式有很多:USB、网络、串口等。这里主要讲一下串口调试时的连接和设置方法。
一、目标机的设置
a. 以下是Windbg的帮助文档中给出的设置方法:
-
On the target computer, open a Command Prompt window as Administrator, and enter the following commands, wheren is the number of the COM port used for debugging on the target computer, andrate is the baud rate used for debugging:
- bcdedit /debug on
-
bcdedit /dbgsettings serial debugport:
n
baudrate:
rate
Note The baud rate must be the same on the host computer and target computer. The recommended rate is 115200.
- Reboot the target computer.