Two-machine debugging

windbg setting

 -b -k com:pipe,port=\\.\pipe\bjbl,baud=115200,reconnect -y

 

vm host  Xp
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="WIN XP Debug" /fastdetect /debug /debugport=com1 /baudrate=115200

or
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="WIN XP Debug" /fastdetect /debug /debugport=com1 /baudrate=115200

 

 

vm host  Win7

bcdedit /copy {current} /d "Windwos7"
bcdedit /dbgsettings serial baudrate:115200 debugport:1
bcdedit /debug ON
bcdedit /bootdebug ON
bcdedit /timeout 5

 

Serial Port

\\.\pipe\bjbl

This end is the server

The other end is an application

 

Symbol

srv*Z:\WINDDK\Symbols*http://msdl.microsoft.com/download/symbols

or

.symfix Z:\WINDDK\Symbols

 

analysis of anomaly

/mapinfo:lines
File -> Symbol File Path ctrl+s
File -> Image File Path ctrl+e
File -> Source File Path ctrl+p
File -> Open Crash Dump ctrl+d
!analyze –v

 

 

win7 vc文件多开

assoc .dsp
assoc .dsw
ftype dspfile="%MSDevDir%\BIN\MSDEV.EXE" %1
ftype dswfile="%MSDevDir%\BIN\MSDEV.EXE" %1

 

删除Windbg布局等配置

reg delete HKCU\Software\Microsoft\Windbg /f

 

源码调试

.sympath pdb path

.reload

 

 

纪录一下,省的用时,到处找.

 

转载于:https://www.cnblogs.com/BjblCracked/p/4501232.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值