When debugging my Python code, I run the script via ipdb from the command line and set some breakpoints. Then I make some changes to one or more modules and rerun. However, if I just use run, the modules will not be reloaded. To make sure they do this, I can completely shut down Python and reload it, but then I need to reset all breakpoints that are tedious if I have a lot of them and if I finish them again.
Is there a way to restart the startup in (i) pdb and make sure that all modules are recursively reloaded?
source
share