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.
Learn more about blog posts .
In short:
from IPython.core.debugger import Pdb ipdb = Pdb() ipdb.runcall(my_imported_function, args...)