Rerun code while debugging and while reloading all modules

﹥>﹥吖頭↗ 提交于 2019-12-11 03:33:58

问题


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?

来源:https://stackoverflow.com/questions/28841411/rerun-code-while-debugging-and-while-reloading-all-modules

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!