Bannerlord.ButterLib icon indicating copy to clipboard operation
Bannerlord.ButterLib copied to clipboard

Fixed exception handler preventing debuggers from catching exceptions

Open Cephas369 opened this issue 6 months ago • 0 comments

Making finalizer patches on methods automatically prevents debuggers from properly catching exceptions on them, just not showing the exception report on the finalizer does not work to allow debuggers catching the error, so the simple solution is, if DisableWhenDebuggerIsAttached is enabled and a debugger is attached, not making the patches. Before for me the debugger was stopping and showing CORDBG_E_CODE_NOT_AVAILABLE when the error occurred now it manages to show the exception line

Cephas369 avatar Aug 07 '24 16:08 Cephas369