无法启用 VS 2019 Live Visual Tree.“启用 UI 调试工具"没有选项; [英] Unable to enable VS 2019 Live Visual Tree. No option for "Enable UI Debugging Tools"

查看:24
本文介绍了无法启用 VS 2019 Live Visual Tree.“启用 UI 调试工具"没有选项;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Visual Studio 2019(版本 16.8.3)Live Visual Tree today"在我的 WPF 应用程序中.所以我进入了工具 >>选项 >>调试 >>General 并惊讶地发现没有启用 UI 调试工具"复选框;或类似的东西.我知道它曾经在那里.现在不是.

I wanted to use the Visual Studio 2019 (version 16.8.3) "Live Visual Tree today" in my WPF application. So I went into Tools >> Options >> Debug >> General and was surprised to discover that there was no checkbox for "Enable UI Debugging Tools" or anything like that. I know it used to be there. Now it's not.

我浏览了所有其他调试选项,但在任何地方都看不到类似的选项.

I went through all the other Debug options and could see no similar option anywhere.

而当我现在调试时,虽然我可以调出Live Visual Tree"窗口,它告诉我UI 调试被禁用,当前应用程序不支持,或者应用程序执行已暂停".

And when I debug now, although I can bring up the "Live Visual Tree" window, it tells me that "UI Debugging is either disabled, not supported by the current application, or the application execution is paused".

我会在它暂停时这样做,如果这很重要的话.我的应用程序是在 C# 中使用 WPF 的 .NET 5.0.

I do this when it is not paused, if that matters. My app is .NET 5.0 using WPF in C#.

那么 Live Visual Tree 发生了什么变化?

So what happened to the Live Visual Tree?

推荐答案

VS2019上的选项在工具-->选项-->调试-->热重载而不是工具 -->选项 -->调试 -->一般.

The option on VS2019 is under Tools-->Options-->Debugging-->Hot Reload rather than Tools --> Options --> Debug --> General.

然后,选中启用 XAML 热重载下的 WPF 选项.

这篇关于无法启用 VS 2019 Live Visual Tree.“启用 UI 调试工具"没有选项;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆