I compiled this small MFC application which throws an exception when I click a CButton using VS2010.
It was on release mode and created pdb files and map files.
Then I used these commands, symfix and sympath+ to let the debugger know where the symbols are. After .reload I entered g, clicked the exception button, and it crashed as expected but the problem here is when I do kb, it doesn’t show full call stack, while it successfully shows its call stack pointing where the exception is coming from when I compile this app on debug mode.
I believe that it should be an easy problem about compile options but I obviously am missing things.
Thanks in advance.
In Release mode, code optimization is on and so the compiler rearranges your code and throws out some of it. This is probably the reason why you don’t see what you expect to see. Try disabling optimization by going to Project -> Properties -> Configuration Properties -> C/C++ -> Optimization -> Optimization.