您的位置:首页 > 编程语言 > PHP开发

用windbg + vmware 进行双虚拟机调试环境的搭建

2009-03-12 16:17 579 查看
1.在被调试机上
  BOOT.INI设置调试系统启动选项:[operating systems]节中加入一行,
  " multi(0)disk(0)rdisk(0)partition(1)/WINDOWS="Microsoft Windows XP Professional - debug" /fastdetect /debug /debugport=com1 /baudrate=115200 "
2. 关闭系统。配制虚拟机的硬件,点击 "Edit virtual machine settings",添加一个Serial Port,
  选择"Output to named pipe",然后下一步,第一框里保持默认的 "//./pipe/com_1"
  第二框里选"This end is the server."
  第三框里选"The other end is an VIRTUAL MACHINE."
  选中 "Connect at power on"
  然后点击 "Advanced---->>" 然后在新窗口中选中 "Yield CPU on poll"。保存退出。
3. 在调试机上
  创建一个WinDbg的快捷方式。快捷方式的命令行为
  "C:/Program Files/Debugging Tools for Windows/windbg.exe" -y C:/Windows/Symbols/ -b -k com:port=com1,baud=115200
  关机,添加一个串口,
  选择"Output to named pipe",然后下一步,第一框里保持默认的 "//./pipe/com_1"
  第二框里选"This end is the CLIENT."
  第三框里选"The other end is an VIRTUAL MACHINE."
  选中 "Connect at power on"
  然后点击 "Advanced>>" 然后在新窗口中选中 "Yield CPU on poll"。保存退出。
4.打开被调试的虚拟机,启动时选择调试状态,开启后,再运行调试机上的WINDBG快捷方式
 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息