system.diagnostics.trace.write(..)

  • Thread starter Thread starter Alex
  • Start date Start date
A

Alex

Hi,

I have noticed that I can only see the output of
"system.diagnostics.trace.write(..)" in the output window of the dubugger.
which leaves me wondering, if these statements are left in the code in a
release build, then where exactly can I see their output.
Is it possible to write then directly to a file rather than the output
window of the debugger.

I am under the impression that objects of the system.diagnostics.trace class
are left in the code when a release build is done where as objects of the
class system.diagnostics.debug are removed from a release build. Am I
correct in this view??

cheers

Alex.
 
Alex said:
Hi,

I have noticed that I can only see the output of
"system.diagnostics.trace.write(..)" in the output window of the dubugger.
which leaves me wondering, if these statements are left in the code in a
release build, then where exactly can I see their output.
Is it possible to write then directly to a file rather than the output
window of the debugger.

I am under the impression that objects of the system.diagnostics.trace class
are left in the code when a release build is done where as objects of the
class system.diagnostics.debug are removed from a release build. Am I
correct in this view??

Look up the System.Diagnostics.TraceListener class in the documentation.
 
Back
Top