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

how to use Trace.WriteLine()

hii,
i just want to know whether c# is having any feature available to fetch error messages and bug while executing project from program to one log file which wld be capable to tell where exatly the error has occured ??
i was trying to use Trace.WriteLine() to find up to where trae has completed in program ??
but i am not able to understand where to look for details ?
please help me asap.
Nov 24 '10 #1
1 2143
GaryTexmo
1,501 Expert 1GB
The MSDN page has a pretty comprehensive writeup, maybe start there and let us know if you have any further questions.

http://support.microsoft.com/kb/815788

There's a section for Trace after the section for Debug.
Nov 24 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ken | last post by:
I would like to start using EventLogTraceListener, and am running into a couple of significant limitations: 1) I have found that there is no way to write EventLog entries with different...
5
by: martin | last post by:
Hi, The trace class seems to me to be very usefull however there are a few features of it that have to confused. I am using visual studio 2003. the IDE will not let me write ...
0
by: Taylor H. Maxwell | last post by:
I am trying to build a generic system for tracking unhandled errors which will place such errors into a log file and the event log. The code is listed below. When I try to run this code below, I...
1
by: xxx | last post by:
Hi, I have written a class, which I instanciate from the code-behind of an aspx page. I want to output some items to the debugger from within the class, but Debug.WriteLine and Trace.WriteLine...
3
by: Schorschi | last post by:
Ok, can someone point out to me why the following code does not work? In compiles, no errors, but MemoryStream never seems to receive any data? Dim theMemory As MemoryStream, _ theListener As...
1
by: John Bailo | last post by:
I wrote a simple test program, console, that does one thing: log DateTime.Now to a trace file. I thought it would be lickety-split, but it's taking more than 10 minutes to write 1 million lines....
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...
2
by: Bob S | last post by:
I am using Debug.WriteLine and Trace.WriteLine to output messages from a dll. This dll is used in an application. No matter whether i run the program in release mode or debug mode and whether i...
0
by: =?Utf-8?B?ZG90TmV0RGF2ZQ==?= | last post by:
I'm wondering why this line: System.Diagnostics.Trace.WriteLine("Some Text"); Does not work in C# in an ASP.NET application? While this one does: ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.