467,116 Members | 1,181 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,116 developers. It's quick & easy.

system.diagnostics.trace.write(..)

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.
Nov 17 '05 #1
  • viewed: 4873
Share:
4 Replies
"Alex" <al**************@yahoo.com> wrote in message
news:u3**************@TK2MSFTNGP12.phx.gbl...
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.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #2
"Alex" <al**************@yahoo.com> wrote in message
news:u3**************@TK2MSFTNGP12.phx.gbl...
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.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #3
cheers john.

alex.
"John Saunders" <john.saunders at surfcontrol.com> wrote in message
news:O5**************@TK2MSFTNGP09.phx.gbl...
"Alex" <al**************@yahoo.com> wrote in message
news:u3**************@TK2MSFTNGP12.phx.gbl...
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.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

Nov 17 '05 #4
cheers john.

alex.
"John Saunders" <john.saunders at surfcontrol.com> wrote in message
news:O5**************@TK2MSFTNGP09.phx.gbl...
"Alex" <al**************@yahoo.com> wrote in message
news:u3**************@TK2MSFTNGP12.phx.gbl...
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.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Raj Dhrolia | last post: by
reply views Thread by Alex | last post: by
4 posts views Thread by A.M | last post: by
1 post views Thread by Jiho Han | last post: by
4 posts views Thread by Jiho Han | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.