1、設(shè)置真實(shí)主機(jī)的COM口屬性
右擊 My Computer 屬性, -> Hardware -> Device Manager ->?Ports(COM & LPT) -> Communications Port(COM1) -> 右鍵屬性 -> Port Settings -> 將 Bits per second 改為 115200
2、虛擬機(jī)中裝系統(tǒng)了,我用的是WinXP SP2。安裝完成后修改boot.ini文件。在里面[operating systems]節(jié)中加入一行,
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin
/fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional - Debug"
/fastdetect /debug /debugport=com1 /baudrate=115200
?
3、
配制虛擬機(jī)的硬件,點(diǎn)擊 "Edit virtual machine settings",添加一個(gè)Serial Port,選擇"Output to named pipe",然后下一步,第一框里保持默認(rèn)的 "
\\.\pipe\com_1"
第二框里選"This end is the server."
第三框里選"The other end is an application."
選中 "Connect at power on"
然后點(diǎn)擊 "Advanced>>" 然后在新窗口中選中 "Yield CPU on poll", 保存退出。
4、
為使用方便,我們?cè)谧烂嫘陆ㄒ豢旖莘绞剑ㄗ烂嬗益I-新建-快捷方式),快捷方式的命令行為
"C:\Program Files\Debugging Tools for Windows (x86)\windbg.exe" -y C:\Windows\Symbols\ -b -k com:pipe,port=\\.\pipe\com_1
5、
srv*C:\WINDOWS\Symbols*http://msdl.microsoft.com/download/symbols