Preventing dash from catching callbacks errors

When developing an app with dash, I would like to debug exceptions raised by callbacks (using for example the %debug magic of IPython to go inside the callback). This is not possible with standard options, probably because dash catches the errors of callbacks. Is there a way to prevent dash from catching the errors so that I can debug more easily?

Try import ipdb; ipdb.set_trace() wherever you want to put a breakpoint.

Sounds obvious when you say it :-), ipython magics are very convenient but more standard tools can be used too! Thank you very much for your prompt answer.

1 Like