dotnet / dotnet/msbuild

Introduce a debug mode that logs all first-chance exceptions

Open
#7,282 3 comments 0 reactions 0 assignees View on GitHub
Area: Debuggability triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 13h
Merged PRs (30d)
133

Description

Introduce a trait/environment variable which, when turned on, would subscribe to `AppDomain.CurrentDomain.FirstChanceExceptions` event and log messages for each first-chance exception happening in each process. This would be verbose, but could help catch really difficult issues where we have 0 errors, 0 warnings but the build failed.

See more inspiration and details here:
https://twitter.com/KirillOsenkov/status/1469388468824330241

and here:
https://github.com/KirillOsenkov/Bliki/wiki/First-chance-exceptions

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.