2

When debugging my Python code, I run a script through ipdb from the command line, and set a number of breakpoints. Then I make some changes in one or more modules, and rerun. However, if I simply use run modules do not get reloaded. To make sure they do, I can exit and restart Python completely, but then I need to reset all breakpoints, which is tedious if I have many and if done over and over again.

Is there a way to restart a run in (i)pdb, and make sure all modules get recursively reloaded?

Community
  • 1
  • 1
gerrit
  • 20,664
  • 14
  • 84
  • 160

0 Answers0