VisualStudio: no debug output

后端 未结 12 990
有刺的猬
有刺的猬 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:49

    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.)

提交回复
热议问题