Debugging and Write / WriteLine tracing are not output in Visual Studio 2010 C # Express

I cannot get Debug or Trace to work in Visual Studio 2010 C # Express. I have "Redirect all output to an immediate window" - Unchecked. The window does not display anything.

using System.Diagnostics; Trace.Write("Hello World"); Trace.WriteLine("Hello World"); Debug.Write("Hello World2"); Debug.WriteLine("Hello World2"); 
+6
source share
2 answers

Make sure that both the "Define DEBUG constant" and "Define TRACE constant" checkboxes in the project properties on the "Assembly" page are checked.

+17
source

Right-click in the output window and make sure the "Program Exit" checkbox is selected.

+5
source

Source: https://habr.com/ru/post/913659/


All Articles