Bannerlord.ButterLib
Bannerlord.ButterLib copied to clipboard
Fixed exception handler preventing debuggers from catching exceptions
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