My FAQ for the Debugger of VS.net 200X

1, LNK4098 warning may cause LNK2019 error

It is because the debugging version of your program is being linked with some system lib without debugging information.

Solution:

When you are using Runtime library, and you want to generate a debug version binary from your code. please set C/C++ code generation->Runtime library to /MTd or /MDd for supporting multithreaded debugging features.

 

2, How to set a break point with condition efficiently?

if(my_condition) {
   _CrtDbgBreak();
}

posted @ 2009-05-22 11:32  破冰  阅读(140)  评论(0编辑  收藏  举报