This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hexagonrecursion
Recipients hexagonrecursion
Date 2020-11-17.11:54:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605614068.9.0.0418270403043.issue42387@roundup.psfhosted.org>
In-reply-to
Content
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 - --/--
History
Date User Action Args
2020-11-17 11:54:28hexagonrecursionsetrecipients: + hexagonrecursion
2020-11-17 11:54:28hexagonrecursionsetmessageid: <1605614068.9.0.0418270403043.issue42387@roundup.psfhosted.org>
2020-11-17 11:54:28hexagonrecursionlinkissue42387 messages
2020-11-17 11:54:28hexagonrecursioncreate