473,386 Members | 1,706 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,386 software developers and data experts.

System.Diagnostics.Debug.WriteLine

A.M
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
Nov 18 '05 #1
4 4920
Hello,

maybe check SysInternals - they have a tool to display
debug infos of applications.
otherwise check TraceHandlers.

regards

tom
-----Original Message-----
Hi,

If I use System.Diagnostics.Debug.WriteLine in a asp.net application, wheredoes the output go?
Is there any trace monitor application thar shows me the trace output?
Thanks,
Allan
.

Nov 18 '05 #2
Hi Allan,

From your description, you're wondering where does the output from the
System.Diagnostics.Debug.
WriteLine go ?

As far as I know, the System.Diagnostics.Debug has a property called
"Listeners"which mantain the collection of listeners that is monitoring the
debug output. By default, there is a default listner "DefaultTraceListener"
in the collection. We can define our custom Listeners which derived from
the "TraceListener" Abstract class and add their instances into the
Debug.Listeners collection so that we can redirect the Ouput to whatever we
want. For detailed info you may view the following reference in MSDN:

#Debug.Listeners Property
http://msdn.microsoft.com/library/en...DiagnosticsDeb
ugClassListenersTopic.asp?frame=true

In addition, in ASP.NET, you may also use the "Trace" feature which can
also log many trace info. You can use Trace.Write .. method within code
line to log some infos and which can be view in page level or application
level. For detailed on Trace, here are some reference in MSDN:

#ASP.NET Trace
http://msdn.microsoft.com/library/en...efunctionality
..asp?frame=true

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Nov 18 '05 #3
Hi Allan,

Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you have anything unclear or if
there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Nov 18 '05 #4
A.M
Thank you for follow-up.

I checked resources you refered me. They are helpfull.

I was expectiong that I could find a 3rd party debug listenner to record all
debug outputs. It seems that there is not any. mybe it is not quite usefull
in practical world.

Thanks,
Ali


"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:SK*************@cpmsftngxa06.phx.gbl...
Hi Allan,

Have you had a chance to check out the suggestions in my last reply or have you got any further ideas on this issue? If you have anything unclear or if there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Microsoft News | last post by:
Hi all. Does id() xpath function work in System.XML? I have built dtd, schema, xdr for a simple xml which includes attributes definded as ID and IDREFS. Validation is occurring properly for all...
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...
3
by: Travis | last post by:
I am trying to display a query like this in my windows form: SELECT workordernumber, date, firstname, lastname FROM customer_db; I am using a rich text box to display the data but it only...
12
by: newsgroupie | last post by:
Hi Newsgroupies, I'm writing a Web Forms program using C# (VS.NET 2003) and trying to monitor it whilst running using "System.Console.WriteLine(<params>)" but can't for the life of me find where...
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...
8
by: Mike | last post by:
In my Smart Device Project, I'm trying to show a message only when debugging. We used to be able to do this with Debug.Print in VB 6. I've tried System.Diagnostics.Debug.WriteLine and this...
5
by: John A Grandy | last post by:
how to use System.Diagnostics.Debug.WriteLine to write directly to a window viewable during debug mode (similar to Debug.Print in VB6)
0
by: Frederic ESNOUF \(MVP-ISA\) | last post by:
Hi, I use System.Diagnostics.Trace.WriteLine command in my applications to debug the code (VB). When the application is compiled, I use debugview from sysinternals to trap these debug...
11
by: Nurit N | last post by:
This is the third newsgroup that I'm posting my problem. I'm sorry for the multiple posts but the matter becoming urgent. I hope this is the right place for it... I have created a very...
1
by: samueltilden | last post by:
I am writing one particular web app in ASP.NET 2.0 in debug mode. Even when I step through the code, the IDE skips over every occurrence of System.Diagnostics.Trace.WriteLine(), but honors...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.