Is there a way to use Debug.WriteLine
in a release build without defining DEBUG
?
Is there a way to use Debug.WriteLine
in a release build without defining DEBUG
?
No, but you can use the Trace
in release by defining TRACE
and using Trace.WriteLine.
Have a look here:
https://support.microsoft.com/en-us/help/815788/how-to-trace-and-debug-in-visual-c