PC Review


Reply
Thread Tools Rate Thread

Debug.WriteLine not working anymore

 
 
herc
Guest
Posts: n/a
 
      4th May 2007
For some reason when I use Debug.WriteLine(), it does not send
anything to the output window any more. I have noticed this in C#,
VB.Net, and in Unmanaged C++. Any thoughts?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SHVzYW0gQWwtQScnYXJhag==?=
Guest
Posts: n/a
 
      4th May 2007
Hi,
check the following link
http://support.microsoft.com/kb/815788

Regads,
Husam Al-A'aaj

"herc" wrote:

> For some reason when I use Debug.WriteLine(), it does not send
> anything to the output window any more. I have noticed this in C#,
> VB.Net, and in Unmanaged C++. Any thoughts?
>
>

 
Reply With Quote
 
zacks@construction-imaging.com
Guest
Posts: n/a
 
      4th May 2007
On May 4, 4:02 pm, herc <carto...@gmail.com> wrote:
> For some reason when I use Debug.WriteLine(), it does not send
> anything to the output window any more. I have noticed this in C#,
> VB.Net, and in Unmanaged C++. Any thoughts?


That has happened to me and I scratched my head for a while before I
realized I had changed the run type from Debug to Release. As long as
Release is selected, all Debug commands are ignored.

 
Reply With Quote
 
herc
Guest
Posts: n/a
 
      7th May 2007
On May 4, 4:56 pm, z...@construction-imaging.com wrote:
> On May 4, 4:02 pm, herc <carto...@gmail.com> wrote:
>
> > For some reason when I use Debug.WriteLine(), it does not send
> > anything to the output window any more. I have noticed this in C#,
> > VB.Net, and in Unmanaged C++. Any thoughts?

>
> That has happened to me and I scratched my head for a while before I
> realized I had changed the run type from Debug to Release. As long as
> Release is selected, all Debug commands are ignored.


Good point, but I am seeing this problem across different languages/
projects. The one I have open right now is in Debug and I don't
believe I am building anything in Release, for this is all internal
use stuff and simply turn off the DEBUG macro in unmanaged C++,
otherwise I ship debug version w/ source, makes finding bugs that much
easier!

Cartoper

 
Reply With Quote
 
herc
Guest
Posts: n/a
 
      7th May 2007
On May 7, 12:57 pm, herc <carto...@gmail.com> wrote:
> On May 4, 4:56 pm, z...@construction-imaging.com wrote:
>
> > On May 4, 4:02 pm, herc <carto...@gmail.com> wrote:

>
> > > For some reason when I use Debug.WriteLine(), it does not send
> > > anything to the output window any more. I have noticed this in C#,
> > > VB.Net, and in Unmanaged C++. Any thoughts?

>
> > That has happened to me and I scratched my head for a while before I
> > realized I had changed the run type from Debug to Release. As long as
> > Release is selected, all Debug commands are ignored.


Just now, in an Unmanaged C program I called the WinSDK function
OutputDebugString() and still got no output in the debug window.
OutputDebugString() IS the WinSDK call to send things to the debugger
window, in release mode, macro change such that the call to
OutputDebugString() does not happen.

Cartoper

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debug.WriteLine and Trace.WriteLine Bob S Microsoft C# .NET 2 23rd Oct 2007 03:35 AM
debug.writeline where does it go? Lloyd Sheen Microsoft VB .NET 4 27th Aug 2007 08:35 PM
Console.WriteLine vs. Debug.WriteLine formatting Zytan Microsoft C# .NET 1 27th Feb 2007 02:24 AM
Debug.WriteLine and Trace.WriteLine from class. xxx@hotmail.com Microsoft ASP .NET 0 1st Sep 2005 02:24 PM
How do I use Debug.WriteLine? Jim H Microsoft Dot NET Compact Framework 4 6th Feb 2004 11:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:44 PM.