VisualStudio: no debug output

后端 未结 12 1004
有刺的猬
有刺的猬 2020-12-24 03:13

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

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

should do the work, but in the Output

12条回答
  •  心在旅途
    2020-12-24 03:53

    Have you checked to make sure you're compiling in Debug mode? If you compile in Retail / Release mode you will see this behavior.

    You should be able to see this information on Visual Studio's toolbar. There will be a combo box which will say Release or Debug. If it says Release, switch it to Debug.

    In certain profile settings, this combo box will not be visible by default. You'll have to access it through the project properties page. It will be on the build / compile tab.

提交回复
热议问题