473,387 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
4 5188
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Raj Dhrolia | last post by:
Hi, In one of my method, I want to know the class/function that called/invoked this method. i.e. i have a function named Method1() in class1. I want "ClassX.MethodX()" in Method1(), when...
0
by: Alex | last post by:
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...
4
by: A.M | last post by:
Hi, If I use System.Diagnostics.Debug.WriteLine in a asp.net application, where does the output go? Is there any trace monitor application thar shows me the trace output? Thanks, Allan
1
by: Jiho Han | last post by:
I am wondering whether asp.net applications can write trace information using the System.Diagnostics.Trace class, and also whether in web.config, the <system.diagnostics> element and its sub...
4
by: Jiho Han | last post by:
I have the following defined in web.config under <configuration> node: <system.diagnostics> <switches> <add name="MainSwitch" value="4"/> </switches>
1
by: Patrick | last post by:
When Tracing in ASP.NET, the IIS process (on IIs5.1) is locking on the Trace file, and I can't read the trace file without restarting the IIS: Even the following does NOT work (how could I fix...
1
by: Oleg Ogurok | last post by:
Hi there, My ASP.NET 2.0 app uses an external assembly that calls methods like Trace.Write() and Trace.TraceError() of namespace System.Diagnostics. I need to enable tracing in my web app so...
0
by: msnews.microsoft.com | last post by:
Hi, I am tring to use Trace Listener in asp.net 1.1 application as mentoned here. But i am getting the following error, Configuration Error Description: An error occurred during the processing...
0
by: =?Utf-8?B?QWxleA==?= | last post by:
Hi. Does anybody know if System.Diagnostics.TraceSource is supported under ASP.NET? I've used this class along with SourceSwitch and TextWriterTraceListener in Windows apps but this is the first...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.