visual-studiodebugging

VisualStudio: no debug output


I'm trying to debug a C# application. The method:

System.Diagnostics.Debug.WriteLine("something");

should do the work, but in the Output window (set to "debug" and with all the options activated) I can't see a single line I'm trying to write. Any idea? Thanks

EDIT: I'm using VS2008


Solution

  • There's an option under Tools-Options-Debugging-General, Redirect all Output Window text to the Immediate Window. Make sure that's disabled. However, by default it isn't, so I doubt that's your issue. You can also just check your Immediate Window to see if it's outputting there.

    You might also want to try resetting all your environment settings. (Tools - Import and Export Settings - Reset all settings.)