Display a message in Visual Studio's output window when not debug mode?

后端 未结 6 1971
耶瑟儿~
耶瑟儿~ 2021-01-31 13:50

In Java, you can use System.out.println(message) to print a message to the output window.

What\'s the equivalent in Visual Studio ?

I know when I\'m

6条回答
  •  长发绾君心
    2021-01-31 14:24

    The results are not in the Output window but in the Test Results Detail (TestResult Pane at the bottom, right click on on Test Results and go to TestResultDetails).

    This works with Debug.WriteLine and Console.WriteLine.

提交回复
热议问题