5

I have been running into issues when using the debugger within Jupyter Notebook, Specifically this command:

from IPython.core.debugger import Tracer
Tracer()() #this one triggers the debugger

Whenever I use Tracer()() the inline debugger shows as expected, but once I enter any command in the field : n(ext), s(tep), etc. I jump to the line:

finally:
  # Reset our crash handler in place
  sys.excepthook = old_excepthook

Here is an image of the issue and the code that was attempted to be debugged (The exact code is not relevant as I am able to reproduce the issue in other notebooks).

Jupyter Notebook Tracer()() Output

I am working on a mac running OSX El Capitan, and using Anaconda for python 2.7. Here are some details about my current setup obtained by running:

conda info --all (from root env)

System Information via: conda info --all from (root) env

Note, I have tried several different debugging options: pdb, ipdb, and Tracer() but ran into separate issues with each. Tracer() seems like the standard option at this time, per the Stackoverflow question Using ipdb to Debug Python Code in Jupyter.

Additionally, I have been able to replicate this issue on my Dell computer running Windows 7.

Any help would be greatly appreciated!

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.