0 I am trying to enable/view debug.trace logging in .net framework internal logging to get more insights into low level issue we are troubleshooting. These debug logs are written conditionally like below #if DBG Debug.Trace(......); #endif Is there an easy was to enable and view these debug level logs written by .net framework libraries? I tried following https://docs.microsoft.com/en-us/dotnet/framework/performance/controlling-logging but it did not find it very useful to track these logs at one place. .net debugging clr .net-internals share | improve this question asked Nov 13 '18 at 19:08 EverythingDotNet EverythingDotNet 1 1 #if DBG is a preprocessor symbol, which is evalulated during compilation. So unless the release build has been compiled with that defined (unlikely), no there is way to enable this logging. In fact such code has even been removed from the final binary unless the symbol was defined (you could use a deco...