解决WinDbg调试VMWare虚拟机连接不上



/*设定端口*/
在VMware建立系统XPSP2,并正确设定了端口号:
增加"Serial Port",
"\\.\pipe\com_1"
"This end is the server."
"The other end is an application."
选中 "Connect at power on"
选中 "Advanced>>"
"Yield CPU on poll"
设置boot.ini
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows XP Professional"/noexecute=optin/fastdetect
//增加
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows XP Professional - debug" /fastdetect /debug /debugport=com1 /baudrate=115200

WinDbg的快捷方式的属性目标"框中,加上参数 -k com:port=\\.\pipe\com_1,baud=11520,pipe

/*开始操作*/

1首先运行 VMware ,启动 Guest OS ,到系统启动选择,选择 "Microsoft Windows 2000 Professional - debug" 项,先不要按回车。
2通过刚才设置好的快捷方式运行WinDbg。
3在 Guest OS 中选择 "Microsoft Windows 2000 Professional - debug" 项,按回车。
\\\\\\\\\\\\\\\\\\\\\\\\
此时WinDbg显示:
Microsoft (R) Windows Debugger  Version 6.2.0013.1
Copyright (c) Microsoft Corporation. All rights reserved.
Opened \\.\pipe\com_1
Waiting to reconnect...
\\\\\\\\\\\\\\\\\\\\\
4 稍等片刻,如果很长时间没有连接上的话,可以按 WinDbg 菜单中的 "Debug"->"Kernel Connection"->"Resynchronize"。

此时WinDbg显示的显示没有变化:
Microsoft (R) Windows Debugger  Version 6.2.0013.1
Copyright (c) Microsoft Corporation. All rights reserved.
Opened \\.\pipe\com_1
Waiting to reconnect...

==================================================================================

原因: VMWare模拟的串口是com2, 所以应该改为: multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows XP Professional - debug" /fastdetect /debug /debugport=com2 /baudrate=115200

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值