By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,727 Members | 766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,727 IT Pros & Developers. It's quick & easy.

system.diagnostics.trace.write(..)

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
"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

P: n/a
"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

P: n/a
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

P: n/a
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.