Working with DebugView.exe  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
zhiguang
Posts: 11
Joined: 14 Apr 2013
Been thanked: 2 times

Working with DebugView.exe

Postby zhiguang » 14 Apr 2013

Code like this :

protected override void CalcBar()
{
Output.WriteLine("hello");
Trace.WriteLine("hello");
}

the OutPut works, but nothing found in DebugView.exe for Trace or Debug

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Working with DebugView.exe

Postby Henry MultiСharts » 15 Apr 2013

Hello zhiguang,

To define the "TRACE" conditional compilation symbol in C# and J#, add the /d:TRACE option to the compiler command line when you compile your code or add #define TRACE to the top of your file. In Visual Basic, add the /d:TRACE=True option to the compiler command line or add #Const TRACE=True to the file.
Source: Trace Class @ MSDN

zhiguang
Posts: 11
Joined: 14 Apr 2013
Been thanked: 2 times

Re: Working with DebugView.exe  [SOLVED]

Postby zhiguang » 15 Apr 2013

It works after I add:

protected override void Create(){
Trace.Listeners.RemoveAt(0);
Trace.Listeners.Add(new DefaultTraceListener());
}


Return to “MultiCharts .NET”