简体   繁体   中英

Visual Studio publish in debug Vs Release mode

I know the difference between debug and release mode BUILD. But I have a small doubt, does it make any difference on what mode I select while publishing the application thru Visual studio?

If you publish using Debug mode , your generated files have debugging enabled and that will impact the performance.

It is always recommended that you publish website in Release Mode

Please read this Don't run production ASP.NET Applications with debug=”true” enabled

Refered to How to: Set Debug and Release Configurations

The Debug configuration of your program is compiled with full symbolic debug information and no optimization. Optimization complicates debugging, because the relationship between source code and generated instructions is more complex.

The Release configuration of your program contains no symbolic debug information and is fully optimized. Debug information can be generated in Program Database Files (C++), depending on the compiler options that are used. Creating PDB files can be very useful if you later have to debug your release version.

Take a look atVisual Studio - Debug vs Release

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM