windows驱动开发7.通过网络配置Windbg远程调试环境
1. 在被调试的机器中开启调试模式并在命令行设置远程端口
查看信息
1
bcdedit
开启调试模式
1
2
3
4
5bcdedit -debug on
bcdedit /debug on
#在设备管理器中查看busparams的值
#Location PCI Slot 160 (PCI bus 3, device 0, function 0)
bcdedit /set "{dbgsettings}" busparams 3.0.0开启网络调试,ip设置为主机地址而非被调试的ip
1
bcdedit /dbgsettings net hostip:192.168.1.16 port:50005 key:2steg4fzbj2sz.23418vzkd4ko3.1g34ou07z4pev.1sp3yo9yz874p
显示信息确认
1
bcdedit /dbgsettings
重启命令
1
shutdown -r -t 0
如果需要windows10打开测试模式
1 | bcdedit /set nointegritychecks on |
2. 在主机中的Windgb中输入远程端口等信息连接调试
- 找到Windbg安装目录
1 | cd C:\Program Files (x86)\Windows Kits\10\Debuggers\x64 |
使用Windgb调试
1
windbg -k net:port=50050,key=2steg4fzbj2sz.23418vzkd4ko3.1g34ou07z4pev.1sp3yo9yz874p
重启被调试的机器。
等待被调试机器重启,主机中会显示调试输出
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
