In my web.config I have the standard element;
<compilation debug="true" defaultLanguage="c#">
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.
I've seen it done before but can't find it or remember it.
HttpContext.Current.IsDebuggingEnabled (posted by Jason Diamond) was what I was looking for.
Thanks for your help Marc!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With