Open nixjdm opened 5 years ago
Yeah, this is flaky enough that I ended up not using it myself, but also useful enough that I really should look into it and see why it doesn't work. I would expect that the global system hook would pretty-print any exception, but that doesn't seem to work either.
The addition of printing locals is the selling point for me :) That's a large part of why Sentry is great too. It can make debugging a ton easier.
Definitely agreed, it's a great tool, if I can get it working :P
It's not well advertised, but you can make ipython show local variables by running %xmode Verbose
. https://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-xmode
ipython tracebacks will also be improved with the release of 8.0, e.g. see https://github.com/ipython/ipython/pull/12150
There's at least a couple problems with this working with ipython.
imagine this is styled:
The same seems to hold for at least
flask-shell-ipython
, which is unsurprising.Possibly out-of-scope: I have no idea really, but maybe whatever is needed to get this to work would also suffice for Jupyter as well. If we're lucky.