Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以通过 Debug -> Windows -> Show Diagnostic Tool 显示诊断工具窗口。
但是在启动/调试应用程序时,那个窗口总是消失。
到底是怎么回事?
我有同样的。诊断工具窗口已关闭。
当您的应用程序启动时,转到菜单:
调试 --> Windows --> 显示诊断工具
我认为 Visual Studio 在设计时和运行时有两种不同的布局。因此,即使窗口在设计时显示,它也不会显示项目何时运行,除非在运行时选择。
首先检查调试时是否启用了诊断工具。
要检查这一点,请转到工具->选项->调试并选中调试时启用诊断工具复选框。
在我的情况下,取消选中“工具”>“选项”>“调试”中的“使用托管兼容模式”选项会导致诊断工具和 PerfTips 出现。我有 Visual Studio 2015 更新 3。