title: Getting the .NET framework setting for <compilation debug="true">
body: <p>In my web.config I have the standard element;</p>
  
  <pre><code>&lt;compilation debug="true" defaultLanguage="c#"&gt;
  </code></pre>
  
  <p>I know I could use [Conditional("DEBUG")] on methods, or use some pre-compiler if statement like #if DEBUG, but what I am looking for is the built-in .NET framework setting that lets me know if the setting for debug in the compilation section.</p>
  
  <p>I've seen it done before but can't find it or remember it.</p>