1

In Visual Studio, we can choose between Release and Debug from a quick menu at the top of the IDE window. Easy. However, selecting Release from this menu does not remove debug="true" from the Web.config file. Check out the image. I can select Release, but the config file doesn't change. If debug="true" remains in the config file, is there any real difference in choosing one configuration over another from the menu?

enter image description here

mrcoulson
  • 1,331
  • 6
  • 20
  • 35

1 Answers1

3

The option compilation debug=true from web.config is linked to ASP.NET only. You will have more temporary ASP.NET files, no page timeout, it determines if aspx pages are compiled in debug mode. See here what it activates.

Debug/Release is linked to how you compile your c# code into Dlls. When Release is activated you don't have the debug information and several optimizations are not done. See here for more information.

Community
  • 1
  • 1
Fabian
  • 1,886
  • 14
  • 13