all groups > visual studio .net ide > january 2008 >
You're in the

visual studio .net ide

group:

Trace/debug statements not shown in VS.NET output pane



Re: Trace/debug statements not shown in VS.NET output pane Jay B. Harlow [MVP - Outlook]
9/2/2003 12:41:22 PM
visual studio .net ide: Arild,
Seeing as you verified that Trace & Debug are enabled via adding a new trace
listener with:

[quoted text, click to view]

Do you have an app.config (myproject.exe.config) associated with the app,
did you remove all the trace listeners in this app.config?

In another section of code, do you or something that you call remove all the
trace listeners?

Hope this helps
Jay

[quoted text, click to view]

Trace/debug statements not shown in VS.NET output pane Arild Fines
9/2/2003 4:28:57 PM
At some point, the trace/debug statements from the project in my
signature(AnkhSVN) stopped being displayed in the output pane of the VS.NET
instance that served as debugger. I am using Trace|Debug.WriteLine, but
nothing appears in the debugger. I also tried DebugView from
www.sysinternals.com - no debug or trace statements appeared there either.
Of course, TRACE and/or DEBUG is defined, as appropriate.

Furthermore, I tried tracing to a file by doing

Trace.Listeners.Add( new TextWriterTraceListener( "N:\\ankhlog.txt" ) )¨;

This works as expected. All trace statements from my addin can be found in
the file.

I also tried a small console application, consisting of one Trace and one
Debug statement. Both statements were shown in both VS.NET and DebugView. So
there must be something about this particular project. Is there some hidden
setting affecting debug output I have accidentally tripped over somewhere?

I am currently using VS.NET 2003, but the problem first manifested itself
while I was still using 2002. I've never seen it work on 2003, but I know it
originally worked on 2002.

Has anyone else seen this problem? Any ideas? I haven't tried anything, and
I'm out of options ;-)

--
Arild Fines

http://ankhsvn.tigris.org
A Visual Studio .NET Addin for the Subversion version control system.

Re: Trace/debug statements not shown in VS.NET output pane Arild Fines
9/2/2003 8:31:52 PM
[quoted text, click to view]

Well, since this is a VS.NET addin, the config file in question is
devenv.exe.config, which has nothing about trace listeners.

[quoted text, click to view]

No, but you gave me an idea. There seems to be some other addin installed
here generating a lot of trace output. I'll try disabling that addin and see
if it helps.

Thanks!

--
Arild Fines

http://ankhsvn.tigris.org
A Visual Studio .NET Addin for the Subversion version control system.

Re: Trace/debug statements not shown in VS.NET output pane Arild Fines
9/2/2003 8:50:53 PM
[quoted text, click to view]

Nope, that wasn't it either. And it would probably have been weird if that
was it, since tracing works with other projects. Grmpf.

--
Arild Fines

http://ankhsvn.tigris.org
A Visual Studio .NET Addin for the Subversion version control system.

RE: Trace/debug statements not shown in VS.NET output pane brewmanz
1/27/2008 6:53:34 PM
I had problem where Debug output was being 'lost' from VS2005 Output window, but it was viewable via DBMon-type programs.
Interestingly, the DLL Load messages showed (I was actually running NUnit for Unit Testing).
Somehow I had unset the 'Program Output' option that's viewable by right-clicking the Output Window. Setting the 'Program Output' flag fixed it all!

This message may be too late for the original thread, but stumbled across this thread search for a fix that I ended up fixing myself, after much head scratching.

From http://www.developmentnow.com/g/55_2003_9_0_0_288504/Tracedebug-statements-not-shown-in-VS-NET-output-pane.htm

Posted via DevelopmentNow.com Groups
AddThis Social Bookmark Button