c# - A preferred way to check if asp.net web application is in debug mode during runtime? -


during compile time can check

#if debug     log("something"); #endif 

but preferred check if debug="false" set in web.config during runtime?

httpcontext.isdebuggingenabled

http://msdn.microsoft.com/en-us/library/system.web.httpcontext.isdebuggingenabled.aspx


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -