Reputation: 96458
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
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