Mar*_*oAB 23 visual-studio-debugging visual-studio-2017
简而言之:Console.WriteLine在VS 2015中运行正常,但它在VS 2017中不再起作用了.
详细说明:我有一些使用Console.Write的VB代码可以在VS 2015中输出ok,即使配置为使用Start Debugging启动的Release(与Debug相比)(与Start Without Debugging相反).
今天我升级到了VS 2017(社区版),但是Console.Write在与VS 2015相同的条件下不再工作了.
也许我过去在VS 2015中做了一些配置,但我不记得了.
有人可以帮我如何在相同条件下将Console.Write输出到Output Window(使用Start Debugging启动Release配置).
Obs:当你处于Debug配置时,Debug.Writeline工作正常(输出到Output Window).当您处于Release配置时,Debug.Writeline,即使您使用Start Debugging启动,也不会输出(到Output Window).需求(以及问题)是在Release配置中的Start Debugging的上下文中.
Mar*_*oAB 20
VS 2017(社区)没有VS 2015中的"托管流程".在VS 2015中,可以在"项目属性"的"调试"面板中启用"托管流程".使用"托管进程"可以使用Console.WriteLine()输出到Output Window(使用Start Debugging启动Release配置时).在VS 2017中没有这样的启动器,因此Console.WriteLine()不再输出到Output Window.
发现(System.Diagnostics.)Trace.WriteLine(Format(...))输出到Release configs中的Output Window,可以替换(System.)Console.WriteLine.
| 归档时间: |
|
| 查看次数: |
21353 次 |
| 最近记录: |