title: A preferred way to check if asp.net web application is in debug mode during runtime?
body: <p>During compile time I can do a check like </p>
  
  <pre><code>#if DEBUG
      Log("something");
  #endif
  </code></pre>
  
  <p>But what would be the preferred to check if <code>debug="false"</code> is set in Web.config during runtime?</p>