CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Posts
    258

    difference between debug-build and release build

    Hi all,

    Can anybody please tell me the difference between debug-build and release build....

    thanks in advance

  2. #2
    Join Date
    May 2006
    Location
    Norway
    Posts
    1,709

  3. #3
    Join Date
    Jul 2002
    Posts
    788

    Re: difference between debug-build and release build

    Quote Originally Posted by VCProgrammer
    Hi all,

    Can anybody please tell me the difference between debug-build and release build....

    thanks in advance
    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.

  4. #4
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: difference between debug-build and release build

    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.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  5. #5
    Join Date
    Sep 2003
    Location
    M...N
    Posts
    220

    Re: difference between debug-build and release build

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured