WinDbg+WMware+Vista

来源:互联网 发布:stm32单片机是什么 编辑:程序博客网 时间:2024/05/20 11:50

一.设置 VMware 的虚拟com
1.     运行 VMware ,点击 "Edit virtual machine settings"
2.     点击 "Add..." 来运行 VMware 的 Hardware Wizard
3.     选择 "Serial Port",点 "下一步"
4.     选择 "Output to named pipe",点 "下一步"
5.     第一框里保持默认的 "//./pipe/com_1"
第二框里选"This end is the server."
第三框里选"The other end is an application."
选中 "Connect at power on"
然后点击 "Advanced>>"
6.     选中 "Yield CPU on poll"(VMware Support 中提到了这一点),然后点完成。
7.     这样就完成了虚拟com的设置。
8.     重新启动一下。

二. 设置Vista系统

1.到C:/windows/system32下以管理员权限运行Cmd[注:必须以管理员权限运行,否则会出现无法访问的错误]

2.运行命令行

1).bcdedit /copy {current} /d "Windows Vista [Debug]"
2).bcdedit /debug {new-guid} on
3).bcdedit /dbgsettings serial debugport:1 baudrate:115200

注:{new-guid}为执行完第一条命令后显示的值,用这个值替换掉

三.另一种设置vista的方法

用 msconfig 进行gui设置,不用命令行这么麻烦。在msconfig界面中,选Boot,再选Advanced options,在选择Debug、Debug port、Baud rate都打上钩。如果所示:

原创粉丝点击