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 / October 2007

Tip: Looking for answers? Try searching our database.

Debug.WriteLine does not show in VS Output;Debug?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
schneider - 27 Aug 2007 17:09 GMT
Debug.WriteLine does not show in VS Output;Debug window?

Anyone know how to fix this?

Thanks,

Schneider
schneider - 28 Aug 2007 15:54 GMT
No one else is having this problem?

> Debug.WriteLine does not show in VS Output;Debug window?
>
[quoted text clipped - 3 lines]
>
> Schneider
Matt F - 28 Aug 2007 19:36 GMT
Are you sure the actual Debug.WriteLine line is being hit?

Can you post your Debug statement?
schneider - 28 Aug 2007 20:25 GMT
yes, I have stepped through the code and watched.

> Are you sure the actual Debug.WriteLine line is being hit?
>
> Can you post your Debug statement?
Matt F - 29 Aug 2007 22:05 GMT
Can you post the code that exhibits this?  I'm guessing it's a coding issue
and not an IDE issue.
Peter Macej - 30 Aug 2007 08:16 GMT
Is it possible that you have redirected your trace output using
TextWriterTraceListener or something similar? The trace output also
affects the debug output. See my article about redirecting trace output
at http://www.helixoft.com/blog/archives/20

You can easily test whether it is your project or IDE setting. Create
very simple new project and try Debug.WriteLine with it. If it doesn't
work, it is probably some IDE setting. If it works, it should be the
project itself causing the problem (e.g. redirecting).

Signature

Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
.NET and ASP .NET code

schneider - 30 Aug 2007 16:06 GMT
Yes, I have created a simple project and it still does not work. I will take
a look at your artical.

Thanks,
Schneider

> Is it possible that you have redirected your trace output using
> TextWriterTraceListener or something similar? The trace output also
[quoted text clipped - 5 lines]
> is probably some IDE setting. If it works, it should be the project itself
> causing the problem (e.g. redirecting).
schneider - 30 Aug 2007 16:59 GMT
That did not help me any, I am aware of the the condition attributes.

I think the listeners are getting hyjack somehow, either by me or something
else...

Schneider

> Is it possible that you have redirected your trace output using
> TextWriterTraceListener or something similar? The trace output also
[quoted text clipped - 5 lines]
> is probably some IDE setting. If it works, it should be the project itself
> causing the problem (e.g. redirecting).
Peter Macej - 30 Aug 2007 17:06 GMT
Try to open Immediate window (Debug - Windows - Immediate). It is very
possible that you have checked the option "Redirect all Output Window
text to the Immediate Window" in Tools - Options… - Debugging - General
options. If not, check all options under Debugging.

Signature

Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
.NET and ASP .NET code

schneider - 05 Oct 2007 05:05 GMT
Problem was this line of code:

Trace.Listeners.Clear()

Apparently I was deleting listeners which were not mine...

Thanks,
Schneider

> Try to open Immediate window (Debug - Windows - Immediate). It is very
> possible that you have checked the option "Redirect all Output Window text
> to the Immediate Window" in Tools - Options. - Debugging - General
> options. If not, check all options under Debugging.

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.