1. 安装 windbg
2. 配置 windbg
a) File à symbol file path… (ctrl +s)
b) 输入SRV*c:/windows/symbols*http://msdl.microsoft.com/download/symbols
c) 桌面新建快捷方式,地址为
"D:/Program Files/Debugging Tools for Windows/windbg.exe" -b -k com:pipe,port=//./pipe/com_1,resets=0
这里是我的安装地址,你自己修改。
3. 配置 VMware
a) 将vm中的系统关机
b) 打开congfiguration editor
c) 添加硬件
d) 选择 serial port
e) 选择 use named pipe, 改为 //./pipe/com_1
f) 选择this end is the server
g) 选择 the other end is an application
h) 点 advanced 选择 Yield on CPU poll
i) 完成
4. 配置VMware中系统
a) 开机
b) 将c盘中的BOOT.ini 文件的只读属性去掉后改写
c) 复制一个新的启动项,如下
d)








e) 新建的项后面添加/debugport=com1 /baudrate=115200,确保他们和你新建的项位于同一行
f) 重启
5. 打开系统进入调试态
a) 选择debug系统,等待系统暂停
6. 打开windbg