doubts
doubts

Reputation: 1882

IPython Step by step debugging of the imported module

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.

Upvotes: 5

Views: 1037

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 600059

See my blog entry for a full description.

In summary:

from IPython.core.debugger import Pdb
ipdb = Pdb()
ipdb.runcall(my_imported_function, args...)

Upvotes: 4

Related Questions