system.diagnostics.trace.write(..)

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.
 
J

John Saunders

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top