问题描述
我正在 Visual Studio 2015 Update 1 的调试构建配置中运行 .Net 4.5 WPF 应用程序.
I'm running a .Net 4.5 WPF application in Visual Studio 2015 Update 1 in a Debug build configuration.
在工具">选项">调试">常规"中,我选中了启用 XAML 的 UI 调试工具并在实时可视化树中预览所选元素.
In Tools > Options > Debugging > General I have checked Enable UI Debugging Toos for XAML and Preview selected elements in Live Visual Tree.
但是,当我运行我的应用程序时,Live Property Explorer 和 Live Visual Tree Windows 都会显示以下消息.
However, when I run my application, both the Live Property Explorer and Live Visual Tree Windows display the following message.
UI 调试被禁用,当前应用程序不支持或应用程序执行已暂停.
UI Debugging is either disabled, not supported by the current application or the application execution is paused.
我错过了什么?
推荐答案
我遇到了同样的问题,并通过选择预览实时可视化树中的选定元素"子选项(即在工具 > 选项 > 调试 >常规 > 为 XAML 启用 UI 调试工具).每当我取消选中该选项时,Live Property Explorer 和 Live Visual Tree 窗口都会再次显示UI 调试被禁用..."消息.
I had the same issue and resolved it by also selecting the "Preview selected elements in Live Visual Tree" sub-option (i.e. under Tools > Options > Debugging > General > Enable UI Debugging Toos for XAML). Whenever I unchecked that option, the Live Property Explorer and Live Visual Tree windows would go back to showing the "UI Debugging is either disabled..." message again.
这篇关于如何在 Visual Studio 中启用 Live Visual Tree 和 Live Property Explorer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!