debug vs release

hi, what diferences are betwen "debug" and "release" binary file version of project



Answer this question

debug vs release

  • -K-a-Z-a-F-

  • VShaneCurtis

    Just to compliment Vikram's information:

    You can debug release versions (without disabling optimisations) in .NET 2.0, by doing the following:

    1. In Solution Explorer, right-click the Project node and click Properties
    2. In the Properties window, select the Debug tab
    3. Change Configuration to Release
    4. Under Output, click Advanced...
    5. In Advanced Build Settings, change Debug Info to pdb-only

    This will generate pdb debug symbols for debugging a release version.

    To using conditional directives:


    #if DEBUG
       MessageBox.Show("Debug");
    #endif

     


  • chino

    Can i set compling some code only in debug


  • BANKS

    Debug build contain debug symbols and can be debugged while Release build doesn’t contain debug symbols and cannot be debugged. Hence Release build will perform faster compared to a Debug build binary.

    Also When an application is built using Debug build, a .pdb file is generated in the bin folder while this does not  happen in Release build.

    Regards,
    Vikram

  • debug vs release