![]() |
Web Development »
Trace and Logs »
Debug and Tracing
Intermediate
License: The Code Project Open License (CPOL)
A simple solution to see the inside of your codeBy MazeA simple solution to see the inside of your code. |
C#, .NET CF, .NET 1.1, Win2K, WinXPVS.NET2003, Architect, Dev, QA
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
Have you ever wanted to see what happens inside of your code? This project catches in real time every trace message from your application, centralizes them, and shows them on your screen in a friendly way.
The package contains five projects:

Listener can be added from the source code: Trace.Listeners.Add( new Esi.Diagnostics.Listener() );
Listener can be added from your application Config file like shown below: <system.diagnostics>
<trace>
<listeners>
<add name="myListener"
type="Esi.Diagnostics.Listener, esiListener"/>
<remove
type="System.Diagnostics.DefaultTraceListener"/>
</listeners>
</trace>
</system.diagnostics>
Trace.WriteLine( " Hello world :) " );
Trace.Write( "Hello again :P" );
Trace.Write( "[E]Uuuups error :( " );
Point p1 = new Point( 5, 5);
Trace.WriteLine( p1 );
gacutil -i esiListener.dll
Trace::Init();
For trace, call:
Trace::WriteLine("Trace from C++");
Convention for erorr[E], warning[W], and information[I] works here.
I have updated this article especially for ninjacross :). That's all, and thank you for your attention.
| You must Sign In to use this message board. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 25 May 2006 Editor: Smitha Vijayan |
Copyright 2005 by Maze Everything else Copyright © CodeProject, 1999-2009 Web22 | Advertise on the Code Project |