
windows debug
jjjlike
这个作者很懒,什么都没留下…
展开
-
windbg的系统异常状态设置
sx显示系统异常设置状态, 如下0:001> sx ct - Create thread - ignore 创建线程 et - Exit thread - ignore 退出线程 cpr - Create process - ignore 创建进程 epr - Exit process - break 退出进程 ld - Load module - output 加原创 2013-01-24 15:27:05 · 5138 阅读 · 0 评论 -
将应用程序绑定到windbg启动
比如要绑定的windbg的应用程序名为 et.exe1、修改注册表首先在注册表中创建以下键值,HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Image File Execution Options/et.exe然后,在此键上增加名为 Debugger的String Value,其值为windbg的原创 2013-01-16 15:21:58 · 1168 阅读 · 0 评论 -
内存检查函数 CrtCheckMemory
BYTE* a = new BYTE[10];for (int idx = 0; idx <= 10; ++idx){a[idx] = 1;_ASSERTE(_CrtCheckMemory());}内存越界了,这样就可以及时报错了。//每个dll保证调用一次_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG...原创 2013-03-05 22:30:23 · 1387 阅读 · 0 评论 -
各种特殊内存填充的含义
* 0xABABABAB : Used by Microsoft's HeapAlloc() to mark "no man's land" guard bytes after allocated heap memory* 0xABADCAFE : A startup to this value to initialize all free memory to catch errant p原创 2017-12-10 20:48:38 · 501 阅读 · 0 评论 -
windbg的好用的命令
1、有时候想对某个函数下断点,可就是记不清楚的函数具体的名字,好吧,使用x命令来列举所有的符号的。命令格式为:x [选项] 模块名字!符号匹配表达式如,>>x et!* //于是,所以的et模块的函数都出来,哈哈~2、64位生成器生成32位的程序的dump文件,查看时,可以使用以下命令转到32位模式下调试。.load wow64exts!sw3、...原创 2013-01-29 11:42:02 · 824 阅读 · 1 评论 -
vs 命令
1、vs 被动拉起命令参数(com中使用)-embedding2、查看last error@err, hr3、去掉注释的拼写检查(vs代码)原因在于visual assist。在VAssistX菜单栏->Visual Assist X Options->展开Advanced->Underlines->把underlines spelling err...原创 2014-08-26 15:39:27 · 500 阅读 · 0 评论