You can debug the release version of the program.
In VS2005 you have to do the following changes to project properties dialog for release version.
1.Select "C/C++ ->General" option in "configuration properties", select "Program Database"(/Zi) in the "Debug Information Format" combobox.
2.Select "Link -> Debugging", select "Yes"(/Debug) in "Generate Debug Info" combobox.
Build your project with this new property settings.
Now you can debug the release version as you debug the release version.
A release version of a program can behave different than the debug version due to optimzier settings. If you find a strange/buggy behavoir disable every optimazion and try again.
ASSERTs will compile to nothing in a release version but VERIFY does. So if you call a function like ASSERT(DoSomething()) this function will not be called in the release version!
No comments:
Post a Comment