Hi all,
In VS2005 Vc++ how can i run a application in Relase mode with debug support.
thanks ahead
Printable View
Hi all,
In VS2005 Vc++ how can i run a application in Relase mode with debug support.
thanks ahead
Haven't tried it but opened one of mine projects and debug database output was set for both debug & release build. I guess it's just to set release build and then run in debugger (didn't see any debug settings in compiler, only linker). I don't think it's easy though due to optimization and so on.
thanks for the info S_M_A.
If i create a new vc++ project in VS2005 even in release mode i can debug by default.
As i have converted from vc6 to vc++ VS2005 i have a problem.
still not able to debug in release mode...
I tried and it worked alright. However, it was hard to find a valid place to set a breakpoint, probably due to optimization.
Debug information in release mode can be useful when tracing the source of a crash by cross referencing the exception address with the map file. For stepping through the code it's not a lot of use, as the optimisations will make it unlikely to follow the actual position in the code and the variable values may or may not have anything to do with reality.
S_M_A:
I tried most of the places to set a breakpoint but was not able to debug in release mode.
when i execute the application breakpoint vanishes.
by the way which place did you put break point.
JohnW@Wessex :
Yes, I wanted to trace the source of a crash by cross referencing the exception address with the map file. But was not able to debug in release mode.
Have a look at Debugging Release mode Problems . In particular, pay attention to Rule #7.