Skip to content

Introduce a debug mode that logs all first-chance exceptions #7282

@KirillOsenkov

Description

@KirillOsenkov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: DebuggabilityIssues impacting the diagnosability of builds, including logging and clearer error messages.triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions