473,802 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Diagnost ics.Debug.Write Line

A.M
Hi,

If I use System.Diagnost ics.Debug.Write Line 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 4957
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.Diagnost ics.Debug.Write Line 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.Diagnost ics.Debug.
WriteLine go ?

As far as I know, the System.Diagnost ics.Debug has a property called
"Listeners"whic h mantain the collection of listeners that is monitoring the
debug output. By default, there is a default listner "DefaultTraceLi stener"
in the collection. We can define our custom Listeners which derived from
the "TraceListe ner" 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.Listener s Property
http://msdn.microsoft.com/library/en...DiagnosticsDeb
ugClassListener sTopic.asp?fram e=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=tru e

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.m icrosoft.com> wrote in message
news:SK******** *****@cpmsftngx a06.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
4242
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 the types of metadata, but the id() function applied to the IDREFS attribute allways returns nothing. I have tried it from xslt and using the XmlNode.selectnodes or XPathNavigator.Select nada zilch
1
322
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 MethodX() of ClassX invokes Method1() function I think System.Reflection might provide some help. Regards.
3
2227
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 displays ONE record in the rich text box. How do you display all the found records. I am using the System.Data.Odbc; it is quite easy to use, but I cannot figure out how to display large
12
3790
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 it outputs too. Am I thick or just unlucky? Please help!
1
4372
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 this??): System.Diagnostics.Trace.WriteLine(System.DateTime.Now.ToLongTimeString()+ "--" + dirException.ToString()); System.Diagnostics.Trace.Flush(); ((System.Diagnostics.TraceListener) System.Diagnostics.Trace.Listeners).Close();
8
476
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 doesn't seem to do anything - I can't see it writing anywhere. I also tried Debug.Assert and Debug.Fail and both of these do show the message on the Pocket PC device, but then when I click on Continue or Debug at the bottom of the message on the...
5
2872
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
1217
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 information. For the first time I had to create a console application, and I don't know why, System.Diagnostics.Trace.WriteLine generates no information in debugview.
11
3758
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 simple batch file (echo hello world) and was trying to retrieve the standard output but every time I run the code it returns ExitCode as 1.
1
5809
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 System.Diagnostics.Debug.WriteLine(). I have other web app's that run fine, Trace.WriteLine() actually writes to the output window and my TraceListener catches it. What can I configure / set so that this web app honors
0
9699
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10538
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10305
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6838
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.