Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 92
  • Last Modified:

Csharp Setting

What's the different between Debug and Release configuration ? Should I always need to change it to Release before deploying the application to the server ?

Tks
Csharp-Setting.png
0
AXISHK
Asked:
AXISHK
  • 2
  • 2
1 Solution
 
Ramkisan JagtapLead DeveloperCommented:
Debug has extra checking, extra initialisaton and other features which makes locating problems easier, it is also not optimised to make debugging make more sense. Because of all of these settings though, the debug mode version runs at a fraction of the speed of the release mode.
 
Release mode has none of the initialisation of released mode. Where debug mode allocates memory, sets it to a value (which is never null, so it is always a good idea to initialise it yourself anyway) and then gives it to you, release mode just allocates the memory and gives it to you. Release mode also has none of the extra checking of debug mode. Finally release mode is optimised. All of these added together gives a large speed boost over debug mode.
 
But the only way release/debug mode could affect the include path is if a directory is given via the /I (additional include directories).
 
Refer: http://msdn.microsoft.com/en-us/library/wx0123s5.aspx
0
 
AXISHKAuthor Commented:
Does it mean I need to change it to "Release" before deploying to the production server, correct ?
0
 
Ramkisan JagtapLead DeveloperCommented:
yes, Thats the correct way!
0
 
AXISHKAuthor Commented:
Tks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now