IPython Step-by-Step Debugging of an Imported Module

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

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

+3
source share
1 answer

Learn more about blog posts .

In short:

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

All Articles