Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement, Epic] Improve debug experience #27016

Open
pictos opened this issue Jan 8, 2025 · 1 comment
Open

[Enhancement, Epic] Improve debug experience #27016

pictos opened this issue Jan 8, 2025 · 1 comment
Labels
area-architecture Issues with code structure, SDK structure, implementation details proposal/open t/enhancement ☀️ New feature or request
Milestone

Comments

@pictos
Copy link
Contributor

pictos commented Jan 8, 2025

Description

Today when working on a maui App the debugger experience isn't great, when we inspect a member, it doesn't show useful information at first glance, and some important values are at the bottom of a long list, so would be great if we can improve that with the usage of DebuggerDisplay.

Example of not useful information:
Image

When debugging the popup will show the ToString value of that type which isn't very useful

Example of the need to find a useful information:

Image

In order to find the ItemsSource or SelectedItem on picker, I need to expand that popup and scroll over all properties before it.

And some values are recursive:

Image

Here I'm inspecting a layout variable, which is a VerticalStackLayout, and I would like to see its Children, but when I inspect it says that Children is a Window, and it ends in an infinite loop inside the Window. The expected result is this
Image

Public API Changes

We should use the DebuggerDisplay attribute to improve the debugger experience, showing useful information at first glance.

Here's the expected result:

Useful information right way:
Image

Image

(maybe we should add the type?)

Intended Use-Case

improve debug cycle on devs that create apps and work on .net maui framework.

@jfversluis
Copy link
Member

Awesome! I like it!

@jfversluis jfversluis added this to the Backlog milestone Jan 9, 2025
@jfversluis jfversluis added the area-architecture Issues with code structure, SDK structure, implementation details label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-architecture Issues with code structure, SDK structure, implementation details proposal/open t/enhancement ☀️ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants