When using
using System.Diagnostics;
and
Debug.WriteLine("Test");
having run the application, no “Test” can be seen in output. But if I use the msgbox function instead, the msgbox pops up, so the line is reached.
Am I looking in the wrong window or what do I have to change?
I am using VC# Express.
There are two likely causes for this behavior
Debug.WriteLinecall is not in the final programThe easiest way to diagnose this is to change the code to
If it prints then you have an issue with the trace listeners, else you’re compiling in Release