Where does System.Diagnostics.Debug.Write output appear?

While debugging System.Diagnostics.Debug.WriteLine will display in the output window (Ctrl+Alt+O), you can also add a TraceListener to the Debug.Listeners collection to specify Debug.WriteLine calls to output in other locations.

Note: Debug.WriteLine calls may not display in the output window if you have the Visual Studio option “Redirect all Output Window text to the Immediate Window” checked under the menu ToolsOptionsDebuggingGeneral. To display “ToolsOptionsDebugging“, check the box next to “ToolsOptionsShow All Settings“.

Leave a Comment