Debug.WriteLine not working anymore

H

herc

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?
 
Z

zacks

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.
 
H

herc

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
 
H

herc

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top