在编译期间,我可以做如下判断
#if DEBUG
Log("something");
#endif
但是,在运行时判断Web.config中是否设置了debug="false"
,首选的是什么?
在编译期间,我可以做如下判断
#if DEBUG
Log("something");
#endif
但是,在运行时判断Web.config中是否设置了debug="false"
,首选的是什么?
HttpContext.IsDebuggingEnabled
https://docs.microsoft.com/en-us/dotnet/api/system.web.httpcontext.isdebuggingenabled