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