Experience, Knowledge, Creativity

  • Increase font size
  • Default font size
  • Decrease font size
Home Blog .Net ASP.Net Debug Modes

ASP.Net Debug Modes

E-mail Print PDF
Detecting ASP.NET Debug mode - Rick Strahl

Don’t run production ASP.NET Applications with debug=”true” enabled  - ScottGu

ASP.NET Memory: If your application is in production… then why is debug=true

/debug (C# Compiler Options)

Debugger.IsAttached Property

HttpContext.IsDebuggingEnabled Property

If you use Reflector to view the source for HttpContext.IsDebuggingEnabled you'll see that it looks in your current web.config using code more-or-less like this:
System.Configuration.Configuration config = WebConfigurationManager.OpenWebConfiguration(null);
return ((SystemWebSectionGroup)config.GetSectionGroup("system.web")).Compilation.Debug;