[issue42387] Pdb should restore the execution environment before reexecuting the target

2021-06-14 Thread Irit Katriel
Irit Katriel added the comment: I recently fixed a bug where breakpoints were not saved properly between reruns of the program - the assumption there was that if you set a breakpoint you don't want to have to set it again and again. Similarly, how do you know that the change to sys.path was

[issue42387] Pdb should restore the execution environment before reexecuting the target

2020-11-17 Thread Andrey Bienkowski
New submission from Andrey Bienkowski : When the target exits, pdb automatically restarts it. If the target changed something before exiting the changes will remain unless pdb explicitly undoes them. While working on #42383 I had an idea: it would be useful if pdb reverted the changes the tar