
Debug
文章平均质量分 68
is2120
这个作者很懒,什么都没留下…
展开
-
设置_NT_SYMBOL_PATH(windbg)
Use the Microsoft Symbol Server to obtain debug symbol files//z 2011-09-04 16:52:44@is2120.优快云 转载请注明出处debug tools for windows,windbg原创 2011-09-04 16:51:30 · 11554 阅读 · 0 评论 -
在使用vs2010调试时大量出现iso_whid,HR PROPAGATED 信息
//z 9/5/2011 2:39 PM@is2120@youkuaiyun.comframework4.0 iso_whid 错误在用visual studio 2010 调试时会向dbgview输出大量的如下信息:*** HR propagated: -2147024774[8092] *** Source File: d:\iso_whid\x86fre\base\iso原创 2011-09-05 14:38:44 · 8565 阅读 · 0 评论 -
DbMon.c (zz)
<!--span {font-family:'Consolas'; font-size:10pt; color:#839496}.zide {color:#002B36}.sc1 {color:#586E75}.sc4 {color:#2AA198}.sc5 {color:#859900}.sc6 {color:#2AA198}.sc7原创 2012-12-06 13:37:26 · 851 阅读 · 0 评论 -
Bug Report For .Net (zz.IS2120@BG57IV3)
<!--span {font-family:'YaHei Consolas Hybrid'; font-size:10pt; color:#FFFFFF}.zide {color:#000000}.sc2 {color:#9933CC}.sc4 {color:#FF8000}.sc5 {font-weight:bold; color:#FF660原创 2012-12-18 15:53:04 · 1104 阅读 · 0 评论 -
c++ 输出 变量名 字符串(zz.is2120.BG57IV3)
#define SHOW(a) std::cout // ...int i = 2;SHOW (i);//z 2013-01-29 16:19:23 IS2120@BG57IV3.T739790998 .K[T104,L1428,R47,V1454]Hey, I like that macro. If you don't mind, I'm going to improve it j原创 2013-01-29 16:14:54 · 915 阅读 · 0 评论 -
调试小技巧
“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.”— Brian W. Kernigh原创 2011-09-19 23:14:47 · 1519 阅读 · 0 评论 -
Debug Tips
//z 2012-4-25 16:46:33 PM is2120@csdn0. 正则表达式/*.gz$/ 匹配以gz结尾的字符串//z 2012-4-22 20:44:31 IS2120@优快云1.编译设置问题(enable exception)1.0 概述编译设置问题1.1 具体错误今天编译某个模块的时候总是遇到如下错误:error LNK2001:原创 2012-04-22 20:48:37 · 1786 阅读 · 0 评论 -
Managed Debugging Assistants (zz)
Getting RID of Just-In-Time debugge//z 2013-08-08 17:15:23 IS2120@BG57IV3.T1665221783.K[T300,L4609,R130,V3618]After Visual Studio is installed on a server, the default behavior when an unhandled原创 2013-08-08 18:13:41 · 3386 阅读 · 0 评论 -
MIDL error: 'annotation' (zz)
//z 2014-03-28 13:41:04 BG57IV3@XCL T188749973 .K.F253293061 [T83,L1034,R46,V1451]MIDL 旧版本与新的SDK不匹配,产生该错误。在VC执行文件目录下添加 Microsoft SDKs\Windows\v6.0\bin 以使用新的 midl 编译器。A colleage recently got th原创 2014-03-28 13:43:05 · 829 阅读 · 0 评论 -
Format Specifiers in C++ (zz)
Format Specifiers in C++The following tables show the format specifiers recognized by the debugger.SpecifierFormatExpressionValue Displayedd,isigned decimal integer原创 2013-07-16 19:58:00 · 1255 阅读 · 0 评论 -
MFC Tips
//z 2014-04-01 17:47:41 BG57IV3@XCL T264464888 .K.F253293061 [T121,L1504,R68,V2251]1. MFC ASSERT 详解在开发过程中我们可以假设只要程序运行正确,某一条件肯定成立。若不成立,那么我们可以断言程序肯定出错。在这种情况下我们可要利用ASSERT来设定断 言。ASSERT宏的参数是一个逻辑表达式,在程序原创 2014-04-01 17:47:18 · 1036 阅读 · 0 评论 -
c++ print stacktrace
c++ stack print stack trace debug utility原创 2014-06-30 12:39:42 · 2338 阅读 · 0 评论 -
ZLogger
ZLogger.hpp#pragma onceclass ZLogger{public: //z gnu log level : DEBUG < INFO < WARN < TRACE < ERROR < ALERT < CRIT < FATAL < EMERG enum {kInfo,kWarning,kError};public: static bool Log(LP原创 2014-07-15 16:44:29 · 848 阅读 · 0 评论 -
0x7743fcec 处未处理的异常: 0xC015000F: 正被停用的激活上下文不是最近激活的
//z 2014-07-15 10:36:11 L.169'48229 BG57IV3@XCL T2225937918.K.F3399197987[T19,L485,R12,V288]0x7743fcec 处未处理的异常: 0xC015000F: 正被停用的激活上下文不是最近激活的最近调试程序时遇到了关于AfxDeactivateActCtx的错误,看堆栈也没任何信息量!崩溃的地方如下原创 2014-07-15 10:41:21 · 8730 阅读 · 0 评论 -
调试 -- 为GUI程序添加控制台调试信息输出
//z 2014-08-09 22:35:42 L.144' 5058 BG57IV3@BYH T3162696792.K.F3863291090[T5,L330,R3,V36] IS2120 1. 在winmain 中添加 AllocConsole(); freopen("CONIN$", "r", stdin); freopen("CONOUT$", "w", stdou原创 2014-08-09 22:35:04 · 713 阅读 · 0 评论 -
vc++ 调试Release 版本
//z 2014-08-09 23:49:21 L.144' 639 BG57IV3@BYH T160527067 .K.F3103894817[T2,L91,R2,V16] IS2120 c++ windows 调试 release 发布 版本 IS2120@优快云 · C/C++ > General > Debug Information Format should be "Pr原创 2014-08-09 23:49:44 · 602 阅读 · 0 评论 -
Pseudo-variables in Watch Windows
调试时,一些有用的伪寄存器。 //z 2014-08-09 23:37:04 L.144' 1376 BG57IV3@BYH T159269209 .K.F3103894817[T1,L90,R2,V15] IS2120 Suppose you are writing a native code application and want to see the number of原创 2014-08-09 23:39:41 · 775 阅读 · 0 评论 -
Microsoft C++ exception: EEResourceException(orig. IS2120@BG57IV3)
//z 2012-11-28 14:34:06 IS2120@BG57IV3.T3337916209.K[T34,L365,R14,V313]1. 遇到一个奇怪的问题:First-chance exception at 0x74d8c41f Microsoft C++ exception: EEResourceException at memory location 0x0028dc60.原创 2012-11-28 14:29:51 · 1743 阅读 · 0 评论 -
调试之设置数据断点 (zz.IS2120)
How to: Set a Data Breakpoint (Native Only)//z 2012-09-11 09:43:48 IS2120@优快云.T3678804781[T31,L404,R7,V204]Data breakpoints break execution when a value that is stored at a specified memory locat原创 2012-09-11 09:39:43 · 1483 阅读 · 0 评论 -
Bugslayer's Tips (zz)
Bugslayer's Tips//z 2012-09-04 17:56:57 IS2120@优快云.T1187852306[T12,L120,R4,V119]At the end of all my Bugslayer columns in MSDN Magazine (and previously Microsoft Systems Jou原创 2012-09-04 17:53:31 · 1771 阅读 · 0 评论 -
调试流程(暂定)
//z 9/9/2011 3:43 PM@is2120@csdn1. bug是什么?(理解问题)2. 现象是什么?(重现) 3. 找到对应代码的位置(File:Line)4. 进入代码看看,根据context理解代码含义,理解代码出现的原因原创 2011-09-09 15:44:00 · 753 阅读 · 0 评论 -
Debugging VBA zz
Once you're written your VBA procedures and achieved clean compiles without errors, you are ready to undertake the most important step in pr原创 2011-09-15 06:28:12 · 3162 阅读 · 1 评论 -
code review (ZZ)
http://sunxiunan.com/?p=19291) 是否有语法错误,编译错误,编译警告。做法:下载最新代码,将编译警告级别提升到最高,检查output信息。2)是否符合需求,完成requirement文档要求的内容,不能多,也不能少。注意:即使发原创 2011-09-24 16:21:57 · 579 阅读 · 0 评论 -
How to get a stack trace on Windows zz
How to get a stack trace on Windows注:虽然说得是某个特定进程,但是道理是一样一样的...Added by Lisa Almarode, last edited byLisa Almarode on May 28, 2010 16:55 Tech原创 2011-12-23 10:04:52 · 1053 阅读 · 0 评论 -
'function': was declared deprecated
http://blog.youkuaiyun.com/is2120/article/details/72087701. 警告消息 'function': was declared deprecatedCompiler Warning (level 1) C4996Error Message 'function': was declared deprecatedThe c原创 2012-01-18 11:25:36 · 4689 阅读 · 0 评论 -
windbg 使用
lm显示已经加载的模块和首地址!dh dll的首地址bp 首地址+!dh获得的EP地址或者:sxe ld:dllname.dll.restart来断下dll的执行但不是运行到oep处.chain命令可以检查目前WinDbg已经加载的扩展sxe clr开启检测CLR的First Chance Exception的功能默认情况下,Wi原创 2011-09-21 21:32:09 · 1103 阅读 · 0 评论 -
c# 条件编译 Conditional ("DEBUG")
c# 条件编译 Conditional ("DEBUG")简而言之:可以通过Conditional 指定函数和属性是否编译到最终产品中去。同时还应该看看 AttributeUsage ObsoleteC# Language SpecificationSystem.AttributeUsageAttribute (Section 17.4.1), which is u原创 2012-02-24 17:45:07 · 7143 阅读 · 0 评论 -
Visual Studio 调试技巧[Command Window & Immediate Window ](Tips)
Visual Studio 调试技巧[Command Window & Immediate Window ](Tips)1. immediate window 定义的一些 alias (//z 2012-3-13 14:04:44 PM IS2120@优快云)alias ? Debug.Printalias ?? Debug.QuickWatchalias AddProj原创 2012-03-13 14:11:25 · 4225 阅读 · 0 评论 -
Post-BUILD Event Command Line
关于 post-build event 的一些例子:(//z 2012-5-18 15:26:21 PM IS2120@优快云)if $(ConfigurationName) == Debug ( copy "$(TargetDir)myapp.dll" "c:\delivery\bin" /y copy "$(TargetDir)myapp.dll.config" "c:\de原创 2012-05-18 15:23:14 · 3116 阅读 · 0 评论 -
The file contains a character that cannot be represented in the current code page (936)
1. 方法一:将文件中的乱码找到去掉//z 2012-07-06 10:22:32 AM IS2120@优快云.T113491669 用VS2005+DirectX9 SDK(手头测试过的是2004年10月的DirectX SDK和2006年4月的DirectX SDK)编译游戏会出现以下warning:------------------------------------原创 2011-09-08 20:30:15 · 15024 阅读 · 2 评论 -
WinDbg学习笔记整理 (zz)
WinDbg学习笔记整理2010-04-23//z 2012-08-13 18:15:41 IS2120@csdn.T564578150 [T93,L1440,R37,V861]去年看WinDbg帮助时随手记下来的一点资料,放上来保存一下,有新内容我会陆续更新上来。1. 命令行前数字的含义用户调试模式下,如2:005, 2表示进程ID,005表示线程ID内核调试模式下,将显原创 2012-08-13 18:11:55 · 1429 阅读 · 0 评论 -
WinDbg查看函数参数(zz)
WinDbg查看函数参数//z 2012-08-16 16:22:33 IS2120@csdn.T3953604742[T6,L256,R11,V328]在使用Windbg给一个函数下断点后,函数被中断时,我们经常需要查看函数的参数是什么。通常函数被中断的时机发生在,参数已经被压栈了,执行 call指令(当前EIP被压栈,然后EIP被填充为被调用函数的地址)。此时函数参数已经被压栈了,因此原创 2012-08-16 16:18:37 · 7714 阅读 · 1 评论 -
WinDbg / SOS Cheat Sheet (zz)
WinDbg / SOS Cheat Sheet//z 2012-08-30 13:54:57 IS2120@csdn.T2778344714[T12,L281,R9,V136]Here are the WinDbg / SOS commands I talked about at Code Camp NY. These are the basic commands to get y原创 2012-08-30 13:51:25 · 645 阅读 · 0 评论 -
windbg常用断点 (zz)
windbg常用断点//z 2012-08-16 16:43:36 IS2120@csdn.T3181799596[T8,L144,R4,V335]拦截窗口: bp CreateWindow 创建窗口 bp CreateWindowEx(A) 创建窗口 bp ShowWindow 显示窗口 bp UpdateWindow 更新窗口 bp GetW原创 2012-08-16 16:39:46 · 949 阅读 · 0 评论 -
C# helper to dump any object to a log (zz)
<!--span {font-family:'YaHei Consolas Hybrid'; font-size:10pt; color:#000000}.zide {color:#F5F5DC}.sc2 {color:#008000}.sc4 {color:#FF8000}.sc5 {font-weight:bold; color:#0000F原创 2012-08-27 11:03:14 · 1375 阅读 · 0 评论 -
Visual Studio 2008 QFE (zz)
KB944899 //z 2012-09-05 14:04:45 IS2120@csdn.T2123831814[T5,L86,R3,V28]标题KB944899(//z 2012-09-05 14:04:45 IS2120@csdn.T2123831814[T5,L86,R3,V28])发布日期2008/1/14大小3.41 MB原创 2012-09-05 14:01:04 · 890 阅读 · 0 评论 -
c++ windows error C2662 C2663
//z 2014-08-12 12:39:50 L.141'40810 BG57IV3@XCL T961939060 .K.F37272252 [T14,L639,R15,V232] VC C++ windows error C2662 C2663 在const成员函数中调用如下语句时: CBitmap *pOldBitmap = m_dc.SelectObject(&bmpIcon原创 2014-08-12 12:39:02 · 1727 阅读 · 0 评论