Message381225
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 - --/-- |
|
Date |
User |
Action |
Args |
2020-11-17 11:54:28 | hexagonrecursion | set | recipients:
+ hexagonrecursion |
2020-11-17 11:54:28 | hexagonrecursion | set | messageid: <1605614068.9.0.0418270403043.issue42387@roundup.psfhosted.org> |
2020-11-17 11:54:28 | hexagonrecursion | link | issue42387 messages |
2020-11-17 11:54:28 | hexagonrecursion | create | |
|