設定 remote debugging

設定 VMWare 使用虛擬 COM port

加一個 serial port,選 Output to named pipe
\\.\pipe\com_1
This end is the server
The other end is an application
按 Advanced,勾取 Yield CPU on poll
Finish

設定 XP Guest OS

修改 boot.ini

[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” /fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=”Microsoft Windows XP Professional – DEBUG”
/fastdetect /debugport=com1 /baudrate=115200

設定 Vista Guest OS

偷懶法:bcdedit /debug on
以後 boot 起來就直接內定使用 COM port 1 並啟動 kernel debugger

另做一個 config 的方法:

bcdedit /copy {current} /d “Vista Debug”
bcdedit /displayorder {current} {ID}
bcdedit /debug {ID} on

要使用 1394 或 USB 的話,請參考 bcdedit /? /dbgsettings
MSDN reference

Host 端 WinDBG

在桌面上建個捷徑,內容
windbg -b -k com:pipe,port=\\.\pipe\com_1,resets=0

Last Update: Wednesday, September 27th, 2006

舊文索引

站內管理