New submission from Andrey Bienkowski <hexagonrecurs...@gmail.com>:
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 target makes to the execution environment (to a reasonable extent) before restarting it. This includes: 1. os.getcwd() - currently not reverted 2. os.environ - I did not check if this is currently restored or not 3. sys.argv - --/-- 4. sys.path - --/-- ---------- components: Library (Lib) messages: 381225 nosy: hexagonrecursion priority: normal severity: normal status: open title: Pdb should restore the execution environment before reexecuting the target _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42387> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com