Amelio Vazquez-Reina
Amelio Vazquez-Reina

Reputation: 96458

Accessing IPython functionality from the debugger

I have noticed that some of the ipython functionality is not available from the debugger. For example, the ? and ?? operands for variable introspection don't work:

e.g.

ipython> run my_script.py
ipython> %debug
ipdb> foo?
*** SyntaxError: invalid syntax(<stdin>, line1)

Is there a way to bring the full ipython functionality to the debugger?

Upvotes: 0

Views: 108

Answers (1)

btel
btel

Reputation: 5693

ipython runs Python debugger pdb for debugging, so you are limited to commands offered by pdb (type h for a list) plus standard Python syntax (you may replace foo? with help(foo)).

If you want to start IPython shell at an arbitrary position in your code you can try Embedding IPython.

Upvotes: 4

Related Questions