Open debugger on error - Dash

Breakpoints certainly have their uses, but I was hoping to find a way for the debugger to open automatically whenever an error occurred. I was thinking like the %debug statement you can use in Jupyter notebooks.