Search Mars

Monday, August 30, 2010

Debug vs. Release Builds in Visual Studio C++

Have you ever wondered why you need two different builds? If you are a rookie in development teams, you might have observed that debug builds are needed for debugging. And when you generate release candidate, end users won’t need to debug. So you use release switch during compile.
Visual Studio development environment enables you to test your compile-time, run-time, and logical errors by providing you a debug build option for your project. By using debug option, you can set breakpoints during compilation, watch the values of variables, registers, and threads and even you can change values of variables during compilation.

Microsoft uses separate MFC dlls for debug and release versions. If you will see MFC dlls in your system directory, you’ll find MFC42d.dll and MFC42.dll for debug and release versions respectively. Debug version is to help programmers to help in detecting and correcting bugs in their programs.

Disadvantages of releasing Debug build to end users:
* Size:
* Security issues with code -

No comments:

Post a Comment