dotnet / dotnet/maui

Enhance diagnostic experience for Maui

Open
#29,319 0 comments 1 reaction 1 assignee Claimed by @StephaneDelcroix View on GitHub
s/triaged
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### — This a Work in Process. Contributions and comments are welcome —

Collecting diagnostics for maui app is ranging on a scale from hard to impossible. Let's try to summarise the status of what we have and how it could be enhanced.

## CLI collection
- `dotnet-trace`
- `dotnet-gcdump`
- `dotnet-dsrouter`

Docs: https://github.com/dotnet/android/blob/main/Documentation/guides/tracing.md

Enhancements:
- [x] https://github.com/dotnet/diagnostics/pull/5241 (released in https://github.com/dotnet/diagnostics/releases/tag/v9.0.621003)
- [x] https://github.com/dotnet/diagnostics/issues/5435
- [x] https://github.com/dotnet/diagnostics/issues/5436 => https://github.com/dotnet/diagnostics/pull/5494
- [x] https://github.com/dotnet/diagnostics/issues/5474 => https://github.com/dotnet/diagnostics/pull/5502
- [ ] https://github.com/dotnet/diagnostics/issues/5475
- [ ] https://github.com/dotnet/diagnostics/issues/5513

## VS
support collecting, and exploiting traces and dumps from maui apps from within VisualStudio
- build and launch apps so they are "collectable"
- modify `dotnet-monitor` (or use `dotnet-diagnostic`) for single command usage dsrouter, add, etc)
- ...

## VSCode
- build and launch apps so they are "collectable"
- add a command to collect traces and dumps (wip)

## Documentation

We have multiple docs at multiple laces depending on scenarios, and should aim for a centralised one. We should also update the ones we have
- [x] https://github.com/dotnet/android/blob/main/Documentation/guides/tracing.md (updated https://github.com/dotnet/android/pull/10034)
- [x] https://github.com/dotnet/maui/wiki/Profiling-.NET-MAUI-Apps
- [ ] https://github.com/dotnet/maui/wiki/Memory-Leaks
- [ ] https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-trace. Issue:https://github.com/dotnet/diagnostics/issues/5481, PR: https://github.com/dotnet/docs/pull/46087

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.