T
Tony Johansson
Hi!
This example was found in a book. It will write the text "This is my test"
to the output that can be found under the View menu alternative.
Trace.Listeners.Clear();
DefaultTraceListener myListener = new DefaultTraceListener();
Trace.Listeners.Add(myListener);
System.Diagnostics.Debugger.Log(1, "Test", "This is my test");
I made a little test here so I removed all rows and kept just this one
System.Diagnostics.Debugger.Log(1, "Test", "This is my test");
and I get the same result.
Does the Debugger has a Listener by default ?
//Tony
This example was found in a book. It will write the text "This is my test"
to the output that can be found under the View menu alternative.
Trace.Listeners.Clear();
DefaultTraceListener myListener = new DefaultTraceListener();
Trace.Listeners.Add(myListener);
System.Diagnostics.Debugger.Log(1, "Test", "This is my test");
I made a little test here so I removed all rows and kept just this one
System.Diagnostics.Debugger.Log(1, "Test", "This is my test");
and I get the same result.
Does the Debugger has a Listener by default ?
//Tony