Live Visual Tree disabled or not supported

Michael Felleisen 146 Reputation points
2021-01-27T08:30:39.8+00:00

Hey,

I can not get the Live Visual Tree to work. I saw a few related posts here and on stackoverflow but no proposed fix worked for me.
All I get in the Live Visual Tree window is "UI Debugging is either disabled, not supported by the current application or the application execution is paused."
I am using Visual Studio Community 2019 Version 16.8.4 and created a new Mobile App (Xamarin.Forms) using the Flyout template (other templates do not work either).

https://i.stack.imgur.com/0wAOq.png
(For reference if the picture gets taken down in the future, the missing options are: Enable UI Debugging Tools for XAML, Preview selected elements in Live Visual Tree, Show runtime tools in application, Enable XAML Edit and Continue)

This screenshot is from another post and found that I do not have the options in the bottom red square of this screenshot.
I installed the Mobile Development with .NET in the Visual Studio Installer!

Any ideas on how I can make this feature work? The Live Visual Tree seems like an awesome feature and I would hate to miss out on it.

Cheers,
Michael

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,301 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
951 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Felleisen 146 Reputation points
    2021-01-27T10:48:53.283+00:00

    Alright. So the options described in my original post are still missing.
    But I managed to get it to work.

    Apparently I was missing the Android-SDK for API level 29 (Android 10) which might be mandatory with the new Xamarin.Forms 5.x.x.xxxx version?

    If you do not have: Solution -> [AppName].Android -> References -> Xamarin.Essentials / Xamarin.Forms listed you might have the same problem I had.
    Those references where there for the [AppName].iOS project! And could be found in the [AppName] project under Solution -> [AppName] -> Dependencies -> Packages -> Xamarin.Essentials / Xamarin.Forms

    Most likely something went wrong with your Android-SDK and you need to repair / un- and reinstall it.

    You can do that with: Tools -> Android -> Android SDK Manager and then install / repair the latest SDK version or for me Android 10.0 - Q (Android API Level 29)

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful