Jonathan Pryor

Results 112 comments of Jonathan Pryor

@rolfbjarne: I suspect what you want/need is [`Debugger.BreakForUserUnhandledException(Exception)`](https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.debugger.breakforuserunhandledexception?view=net-9.0#system-diagnostics-debugger-breakforuserunhandledexception(system-exception)), added in .NET 9. See also: * https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.debuggerdisableuserunhandledexceptionsattribute?view=net-9.0 * https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.debugger.breakforuserunhandledexception?view=net-9.0#system-diagnostics-debugger-breakforuserunhandledexception(system-exception) * https://github.com/dotnet/java-interop/issues/1258

Note: `Debugger.BreakForUserUnhandledException()` only works when using the "ICorDebug" debugger backend, not mono/debugger-libs.