Rerun code while debugging and while reloading all modules
Asked Answered
S

0

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?

Sundries answered 3/3, 2015 at 20:36 Comment(3)
a similar question has already been asked here #15507471Jackijackie
@EliKorvigo Not really. I would still need a way to run this inside ipdb, and take effect in the surrounding code.Sundries
Possible duplicate of How to make pdb recognize that the source has changed between runs?Inflame

© 2022 - 2024 — McMap. All rights reserved.