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
To see the debug output window, in Microsoft Visual Studio, click View, click Other Windows, and then click Output. You can view the debug output in this window only if the debugger is attached to the process that is writing to the output window.
Go to Tools, Options, Projects And Solutions, and uncheck Show Output Window when Build Starts.
Go to "Tools" -> "Options..." and under the "Projects and Solutions" tab expander, you can find a checkbox labeled "Show Output window when build starts". Check it to enable the output window/pane to appear automatically when you build your project. Keep it unchecked, if you don't want to open it automatically.
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.)
Also worth checking - right-click in the output window, and ensure "Program output" is checked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With