Closed
Description
Both NativeAOT and .NET Core share the same exception model, where managed exceptions and processed and handled inside of the runtime and we avoid OS notifications for them unless they are unhandled. For NativeAOT, we recommend setting a breakpoint on RhThrowEx
to debug exceptions when they are thrown. To make it easier to stop on these exceptions, it would be useful to report the exceptions to the OS in NativeAOT so that native debuggers will automatically be notified, similar to .NET Core's mechanism:
runtime/src/coreclr/vm/exceptionhandling.cpp
Lines 1558 to 1573 in c53ccee