Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Visual-Studio Debugging , +
What is difference between Debug and Release Mode in Visual Studio 2008 using C# ? Please, detail me from configuration point of view.
Thanks
Posted 11-Sep-12 18:58pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^]
 
Get more threads here[^]
  Permalink  
Comments
Mohamed Mitwalli at 12-Sep-12 2:01am
   
5+
Prasad_Kulkarni at 12-Sep-12 2:32am
   
Thank you Mohamed!
harshal7689 at 15-Jun-13 6:02am
   
thank you dude.it very informative and i learn a new thing in visual studio.
Prasad_Kulkarni at 17-Jun-13 2:41am
   
Glad to here :)
You're welcome!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You could have at least tried finding the answer on your own. There is lots of information to be found by Google. Here is one quite nice one:
http://stackoverflow.com/questions/4043821/performance-differences-between-debug-and-release-builds[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 893
1 OriginalGriff 400
2 CPallini 275
3 George Jonsson 191
4 Richard Deeming 145
0 OriginalGriff 5,450
1 Sergey Alexandrovich Kryukov 4,532
2 CPallini 4,500
3 George Jonsson 3,102
4 Gihan Liyanage 2,445


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 12 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100