Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / January 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arild Fines - 02 Sep 2003 15:28 GMT
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.
Jay B. Harlow [MVP - Outlook] - 02 Sep 2003 18:41 GMT
Arild,
Seeing as you verified that Trace & Debug are enabled via adding a new trace
listener with:

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

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

> 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
[quoted text clipped - 27 lines]
> http://ankhsvn.tigris.org
> A Visual Studio .NET Addin for the Subversion version control system.
Arild Fines - 02 Sep 2003 19:31 GMT
> Arild,
> Seeing as you verified that Trace & Debug are enabled via adding a
[quoted text clipped - 5 lines]
> Do you have an app.config (myproject.exe.config) associated with the
> app, did you remove all the trace listeners in this app.config?

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

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

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.
Arild Fines - 02 Sep 2003 19:50 GMT
>> Arild,
>> Seeing as you verified that Trace & Debug are enabled via adding a
[quoted text clipped - 15 lines]
> installed here generating a lot of trace output. I'll try disabling
> that addin and see if it helps.

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.
brewmanz - 28 Jan 2008 02:53 GMT
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-s
hown-in-VS-NET-output-pane.ht


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.