Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all
When I Want Execute My Program I See 2 Item In Side Of Exe Button(Green Play In VS) there are Debug And Release ....

what is different beetween Debug And Release?

Please Help Me

Thanks A Lot

[edit] unnecessary pre tags removed [/edit]
Posted
Updated 4-May-12 11:38am
v2

They are nothing more then two different configurations for the build, those created by default from the project template. You can add your own ones or replace them.

The idea is to have two or mode different sets of project options for different purposes. These sets are named and called configurations. The notion of configuration is known to MSBuild.EXE (but not any of concrete configurations) and project file format (XML schema); you can specify which one to build.

The two default configurations, Debug and Release, cover two basic needs of the development cycle: Debug is good for development and debugging, Release is used when you deploy your software. Please understand that it is possible to have different run-time behavior for different configurations (but very bad is you allow such cases), so both configurations need some testing.

If you want to know all the detail on how they are different, see project's Properties and compare them for different configurations.

—SA
 
Share this answer
 
v3
Comments
Shahin Khorshidnia 4-May-12 17:12pm    
+5
Sergey Alexandrovich Kryukov 4-May-12 17:15pm    
Thank you, Shahin.
--SA
VJ Reddy 4-May-12 20:53pm    
Good answer. 5!
Sergey Alexandrovich Kryukov 4-May-12 22:01pm    
Thank you, VJ.
--SA
Addition to Solution1, debug version giving PDB file which used to debug the application at runtime. Refer Microsoft debugger.

Also because Debug version is loading lot of other information and it is strongly advisable to use release version when you are deploying on production to get a better performance.

thanks
rushi
 
Share this answer
 
Comments
Philippe Mori 4-May-12 19:47pm    
Also assertions are enabled by default for the debug version. For example System.Diagnostic.Debug.Assert(some_condition);
Sergey Alexandrovich Kryukov 4-May-12 19:52pm    
You are right, as well as Rushi (I voted 5 for this answer). I just gave the initial idea on the configuration. Many think Debug and Release are some predefined modes of build, but they are not.
--SA
VJ Reddy 4-May-12 20:54pm    
Good addition. 5!

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900