dotnet / dotnet/msbuild

Last-chance exception handling could indicate how it was called

Open
#1,043 0 comments 0 reactions 0 assignees View on GitHub
Area: Debuggability help wanted triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

There are many codepaths that can get to [`DumpExceptionToFile`](https://github.com/rainersigwald/msbuild/blob/0a6e5f11fe3de4c5c9bf377b29b311507775e255/src/Shared/ExceptionHandling.cs#L280-L316), which is a last-ditch effort to try to preserve some debugging information in the case of bad failures. It'd be great if it was easy to identify _which path_ was used for a given exception dump. Knowing, for example, that this exception was caught by the `AppDomain`'s `UnhandledException` handler versus an explicit catch somewhere could be useful information.

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.