Hi all,
Can anybody please tell me the difference between debug-build and release build....
thanks in advance
Printable View
Hi all,
Can anybody please tell me the difference between debug-build and release build....
thanks in advance
Have a look in this FAQ: Visual C++ Debugging: Why does program work in debug mode, but fail in release mode?
Laitinen
Debug build contains debug information, as the name itself suggests, useful when you are running and debugging your application. While in release build, such information is removed by the compiler and as a result, you build size is smaller.Quote:
Originally Posted by VCProgrammer
Release and debug builds are project configurations, i.e. a set of settings for different tools that are involved in the building process, such as the compiler or linker. Though you get a default set of such settings, the differences can change from project to project. In general, debug config has enables debug information and disables optimization.
Actually, it's just a main difference with defition: _DEBUG and DEBUG.
Some code won't show up in the relase mode, if there are under
#ifdef _DEBUG
//blahblah code
#endf
Another difference is in Visual Studio, debug mode using contain tracing info. However, that's just the setting, and you can also put those setting in the release mode, while we sometimes call it "release_debug" mode, which means it's realse version, but you can use it to trace code.