[issue42384] Inconsistent sys.path between python and pdb

2021-01-21 Thread Andrey Bienkowski
Andrey Bienkowski added the comment: I'll give it a try -- ___ Python tracker <https://bugs.python.org/issue42384> ___ ___ Python-bugs-list mailing list

[issue42384] Inconsistent sys.path between python and pdb

2021-01-24 Thread Andrey Bienkowski
Change by Andrey Bienkowski : -- pull_requests: +23139 pull_request: https://github.com/python/cpython/pull/24320 ___ Python tracker <https://bugs.python.org/issue42

[issue42384] Inconsistent sys.path between python and pdb

2021-01-25 Thread Andrey Bienkowski
Change by Andrey Bienkowski : -- pull_requests: +23140 pull_request: https://github.com/python/cpython/pull/24321 ___ Python tracker <https://bugs.python.org/issue42

[issue42384] Inconsistent sys.path between python and pdb

2021-01-25 Thread Andrey Bienkowski
Change by Andrey Bienkowski : -- pull_requests: +23141 pull_request: https://github.com/python/cpython/pull/23412 ___ Python tracker <https://bugs.python.org/issue42

[issue42383] Pdb does not correclty restart the target if it changes the current directory

2021-01-25 Thread Andrey Bienkowski
Change by Andrey Bienkowski : -- pull_requests: +23142 pull_request: https://github.com/python/cpython/pull/24322 ___ Python tracker <https://bugs.python.org/issue42

[issue42383] Pdb does not correclty restart the target if it changes the current directory

2021-01-25 Thread Andrey Bienkowski
Change by Andrey Bienkowski : -- pull_requests: +23143 pull_request: https://github.com/python/cpython/pull/24323 ___ Python tracker <https://bugs.python.org/issue42

[issue42383] Pdb does not correclty restart the target if it changes the current directory

2020-11-16 Thread Andrey Bienkowski
New submission from Andrey Bienkowski : This was mentioned in #31121, but I believe this deserves its own separate issue. If the debug target is specified using a relative path and later the current directory is changed, pdb tries to search for the target in the new current directory. This

[issue31121] Unable to exit pdb when script becomes invalid

2020-11-16 Thread Andrey Bienkowski
Andrey Bienkowski added the comment: Another way to reproduce this that will continue to work once #42383 is fixed is to delete or move the script while it's being debugged. -- nosy: +hexagonrecursion ___ Python tracker <https://bugs.py

[issue42384] Inconsistent sys.path between python and pdb

2020-11-16 Thread Andrey Bienkowski
New submission from Andrey Bienkowski : The first entry in sys.path is different between `python foo.py` and `python -m pdb foo.py`. In the former it is the absolute path to the parent directory of foo.py while in the later it is a relative path (unless the debug target was specified using

[issue42384] Inconsistent sys.path between python and pdb

2020-11-16 Thread Andrey Bienkowski
Andrey Bienkowski added the comment: I'll look into fixing this after I fix #42383 -- ___ Python tracker <https://bugs.python.org/issue42384> ___ ___ Pytho

[issue42383] Pdb does not correclty restart the target if it changes the current directory

2020-11-16 Thread Andrey Bienkowski
Andrey Bienkowski added the comment: I'm working on fixing this -- ___ Python tracker <https://bugs.python.org/issue42383> ___ ___ Python-bugs-list m

[issue42384] Inconsistent sys.path between python and pdb

2020-11-17 Thread Andrey Bienkowski
Andrey Bienkowski added the comment: After reading Lib/pdb.py:main I believe I can fix both by changing a single line. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42383] Pdb does not correclty restart the target if it changes the current directory

2020-11-17 Thread Andrey Bienkowski
Change by Andrey Bienkowski : -- keywords: +patch pull_requests: +7 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23338 ___ Python tracker <https://bugs.python.org/issu

[issue42384] Inconsistent sys.path between python and pdb

2020-11-17 Thread Andrey Bienkowski
Change by Andrey Bienkowski : -- keywords: +patch pull_requests: +8 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23338 ___ Python tracker <https://bugs.python.org/issu

[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

[issue42383] Pdb does not correclty restart the target if it changes the current directory

2020-11-19 Thread Andrey Bienkowski
Change by Andrey Bienkowski : -- pull_requests: +22305 pull_request: https://github.com/python/cpython/pull/23412 ___ Python tracker <https://bugs.python.org/issue42