5

I would like to set breakpoint in the imported module and debug step by step from ipython.

I call separate function from ipython, not the whole module, so %run is not an option.

0

1 Answer 1

4

See my blog entry for a full description.

In summary:

from IPython.core.debugger import Pdb
ipdb = Pdb()
ipdb.runcall(my_imported_function, args...)
Sign up to request clarification or add additional context in comments.

Comments

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.