How to write a debug statement in a window form application

  • Thread starter Thread starter Kueishiong Tu
  • Start date Start date
K

Kueishiong Tu

How do I write a debug statement to output some data in
the debug window in the .net development environment
(specifically window form application) which is
equivalent to the TRACE statement in the MFC environment.
 
System.Diagnostics.Trace.WriteLine(...)

or

System.Diagnostics.Debug.WriteLine(...)

When your program is launched from the IDE in Debug mode, you will see all
trace and debug messages in the Output window.
 
Back
Top