VS2017调试技巧

“类视图”和“对象浏览器”图标

 

VS2017调试小技巧

$ADDRESS Current instruction
$CALLER Calling function name
$CALLSTACK Call stack
$FUNCTION Current function name
$PID Process ID
$PNAME Process name
$TID Thread ID
$TNAME Thread name
$TICK Tick count (from Windows GetTickCount)

Set Function Breakpoint

1.{,,[module] } expression

{,,EXAMPLE.dll}SomeFunction

2.module!expression

EXAMPLE.dll!SomeFunction

In addition, you can enter functions in the Immediate window to view return values. (Open it using Debug > Windows > Immediate.)

Immediate Window

 

 

Windbg  useful commands

ed esp+8 0x4
dd poi(pRSAPublicKeyBlob) L10c
.writemem d:\exportpublicKey.bin poi(pRSAPublicKeyBlob) L10c

 

参考链接

使用跟踪点记录信息

C++ 中的格式说明符

上下文运算符 (C++)

伪变量

使用“并行堆栈”窗口

使用实时调试器进行调试

调试器提示和技巧

“类视图”和“对象浏览器”图标

预定义的预处理器宏

Visual Studio commands

Micorsoft Compiler Options

posted @ 2020-07-01 09:38  anyboo  阅读(227)  评论(0编辑  收藏  举报