Debug and Release mode

  • Thread starter Thread starter Do
  • Start date Start date
D

Do

Hi:

Is there somewhere in any config file where debug or release mode get
set when I change the mode before rebuilding in VS.net?

Thanks,

Do
 
<configuration>

<system.web>

<!-- DYNAMIC DEBUG COMPILATION

Set compilation debug="true" to enable ASPX debugging. Otherwise, setting
this value to

false will improve runtime performance of this application.

Set compilation debug="true" to insert debugging symbols (.pdb information)

into the compiled page. Because this creates a larger file that executes

more slowly, you should set this value to true only when debugging and to

false at all other times. For more information, refer to the documentation
about

debugging ASP.NET files.

-->

<compilation

defaultLanguage="c#"

debug="true"

/>

Dont know whether it compliments the VS.NET's Build >> Configuration Manager

Regards,

HD
 
Thats in web.config file

HD

Hermit Dave said:
<configuration>

<system.web>

<!-- DYNAMIC DEBUG COMPILATION

Set compilation debug="true" to enable ASPX debugging. Otherwise, setting
this value to

false will improve runtime performance of this application.

Set compilation debug="true" to insert debugging symbols (.pdb information)

into the compiled page. Because this creates a larger file that executes

more slowly, you should set this value to true only when debugging and to

false at all other times. For more information, refer to the documentation
about

debugging ASP.NET files.

-->

<compilation

defaultLanguage="c#"

debug="true"

/>

Dont know whether it compliments the VS.NET's Build >> Configuration Manager

Regards,

HD
 
No you need to manually check this.

Debug mode in web.config deals with compilation of the ASPX pages themselves
as opposed to the source files you create. It's for the runtime JIT
compilation that occurs when a page is loaded for the first time.

For deployment you definitely want to turn this option to false in
web.config.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/blog/
 
Hi,

That's exactly what I'm getting at. What value does that Configuration
Manager setting change?
Is there a value somewhere in the web.config file that specifies whether the
app is in debug or
release?

Or is this something that cannot be accessed?

Thanks,

Do
 
What if Visual Studio stops responding every time you try to change
from Release to Debug? Is there any way to change the configuration
without using Visual Studio?
 
Back
Top