XAML debugging feature suggestion

shaun pryszlak 26 Reputation points
2021-08-17T14:10:06.847+00:00

Not sure where to post this.

So I rotate my phone and the screen layout doesn't change. I am sure I have VerticalOptions and HorizontalOptions set everywhere but i obviously haven't. The way I debug it is by setting BackgroundColors on all the various elements so I can see what is resizing and what isn't. that way you can work out what the problem is.

Is there an easier way? What would be nice would be going into "xaml debug mode" and seeing a link between screen/emulator and code. click in the code and it draws a dotted line round the element on screen. Click on the screen and it shows what elements are below the cursor. That would make debugging so much easier.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 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.
939 questions
{count} votes