Add crash report support to the CrashDump extension#8191
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add feature to generate crash report for .NET 6.0 and 7.0
Add crash report support to the CrashDump extension
May 13, 2026
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.
New Feature
What does this feature do?
The CrashDump extension can now ask the .NET runtime to generate JSON crash reports in addition to, or instead of, a dump. This makes crash triage lighter-weight in CI, especially for environments where full dump collection is expensive or impractical.
Why is this feature needed?
DOTNET_EnableCrashReportandDOTNET_EnableCrashReportOnlyare already available in the runtime, but the MTP CrashDump extension only exposed dump generation. Surfacing crash reports gives a cheaper diagnostic path and improves crash investigation on machines where developers cannot inspect native dumps directly.Implementation details
CLI surface
--crashreportto generate a crash report alongside--crashdump--crashreport-onlyto request only the JSON crash report--crashreportrequires--crashdump--crashreport-onlycannot be combined with other crash optionsRuntime configuration
DOTNET_EnableCrashReportDOTNET_EnableCrashReportOnlyDbgEnableMiniDumpenabled for--crashreport-only, since the runtime still requires createdump activation to emit the reportArtifacts and user-visible behavior
*.crashreport.jsonCoverage
--crashreportusageExample