码迷,mamicode.com
首页 > 数据库 > 详细

几个实用的WinDBG命令

时间:2014-12-17 20:55:51      阅读:292      评论:0      收藏:0      [点我收藏+]

标签:windows   debugging   

 
几个实用的WinDBG命令

WinDbg单独下载地址http://www.windbg.org/

kn command

dump current stack

1: kd> kn
 # ChildEBP RetAddr
00 81e33c6c 81898d7c nt!RtlpBreakWithStatusInstruction
01 81e33c74 81898d2e nt!KdCheckForDebugBreak+0x22
02 81e33d20 8183ddd5 nt!KeUpdateRunTime+0x270
03 81e33d50 8187dba2 nt!PopIdleDefaultHandler+0x239
04 81e33d54 00000000 nt!KiIdleLoop+0xa

.frame N command

where N is the frame number to navigate to that frame

1: kd> .frame 3
03 81e33d50 8187dba2 nt!PopIdleDefaultHandler+0x239
1: kd> dv
[...]

f+ and .f- command

1: kd> .f-
02 81e33d20 8183ddd5 nt!KeUpdateRunTime+0x270
1: kd> .f+
03 81e33d50 8187dba2 nt!PopIdleDefaultHandler+0x239

set as default debugger

Go into WinDbg directory (Debugging Tools for Windows) and type

windbg -I

use microsoft debug info

f:\BusObjSymbols;SRV*f:\localsymbols*http://msdl.microsoft.com/download/symbols

sombols其他用法可参见http://support.microsoft.com/kb/311503

几个实用的WinDBG命令

标签:windows   debugging   

原文地址:http://blog.csdn.net/cool_way/article/details/41986163

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!