Where to i see the Trace.WriteLn messages?

Where to i see the Trace.WriteLn messages?

Post by yoni » Tue, 05 Dec 2006 23:31:52


Hi,
In order to debug i filled my VB.NET code with Trace.WriteLn messages.
Then i downloaded DbgView and run it. My understanding is that as i run
my code, i suppose to see all the messages in there. i dont see
anything :( I do have the TRACE flag set (it is by default, didnt
change it) what am i doing wrong? thanks
 
 
 

Where to i see the Trace.WriteLn messages?

Post by Oleg Staro » Wed, 06 Dec 2006 18:13:55


What Visual Studio version is used?
Is the application running under de *** or without de *** ?
If you run the application under de *** , is it possible to see the tracing output
in Debug Output window?
Does the application have a .config file? Does it contain something
related to tracing?

 
 
 

Where to i see the Trace.WriteLn messages?

Post by yoni » Thu, 07 Dec 2006 08:01:34

Hi Oleg,
Using visual studio 2003 (.net 1.1)
with the de *** , i do see the output in the 'output' window
the problem is that i want to see it when it runs without the de *** .
maybe the old DbgView utility doesnt work with .net code? i dont see it
there when i run with or without the de *** . am i supposed to?
the app doesnt have a .config file (its just a basic c# project)

shouldnt it be shown on DbgView by default?
thanks!
 
 
 

Where to i see the Trace.WriteLn messages?

Post by Oleg Staro » Thu, 07 Dec 2006 23:47:26


DbgView should be able to show the .NET tracing output, since the default trace listener
in .NET uses the old native OutputDebugString function (unless a managed de ***
is attached to the application).

If you use the latest version of DbgView, is "Capture Win32" enabled under Capture menu?

If you have Visual C++ installed, what happens if you build and run the following
simple console application? Will DbgView be able to capture its debug output?

// begin

#include <windows.h>
#include <tchar.h>

int main()
{
OutputDebugString( _T("Test string") );
return 0;
}

// end

Oleg