Why does Debug.Writeline stop working for some projects in the solution?

后端 未结 6 1635
广开言路
广开言路 2020-12-04 00:21

We have a solution with multiple projects after running the code from VS the output normally seen from Debug.Writeline statements just cease to appear. I mention the multip

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 00:38

    I had the same problem with Visual Studio 2010. None of the above solutions worked in my case, but I solved it like this:

    1. Right-click on your project.
    2. Select Properties.
    3. Click the Compile tab.
    4. Scroll down to "Advanced Compile Options".
    5. Change the value for "Generate debug info" from "pdb-only" to "Full".

    No idea what it's for exactly, but now my Debug.Print statements appear in the Immediate Window again I can finally get back to work.

提交回复
热议问题