feat: Add crash dump capture and analysis to --debug-output#414
Open
feat: Add crash dump capture and analysis to --debug-output#414
Conversation
Build Metrics ReportBinary Sizes
Test Results✅ 718 passed out of 718 tests in 411.0s (+4 tests, -3.7s vs. baseline) Test Coverage❌ 20.8% line coverage, 36.5% branch coverage · CLI Startup Time40ms median (x64, Updated 2026-04-09 05:06:00 UTC · commit |
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 27 out of 35 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When a WinUI 3 app crashes during winapp run --debug-output, the previous output only showed a bare exception code and address. This PR adds automatic crash dump capture and in-process analysis using ClrMD (Microsoft.Diagnostics.Runtime) — no external tools required.
How it works
Output layering
Terminal: Crash summary: faulting symbol, module, source file:line, compact stack (framework frames collapsed)
Log file: All OutputDebugString messages, first-chance exceptions, full thread stacks with module names
Dump file: Full memory minidump for deep analysis with WinDbg or Visual Studio
Usage Example
Related Issue
Type of Change
Checklist
Screenshots / Demo
AI Description
This PR introduces automatic crash dump capture and analysis during
winapp run --debug-output. When a WinUI 3 app encounters critical exceptions, a minidump is generated, and the crash is analyzed in-process using ClrMD, eliminating the need for external tools. Users can utilize it as follows:Breaking Change: None.