Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
Hello everyone,
With Python 3.13,pdb doesn't pass arguments like-b or--bar to a script while it works fine with Python 3.12.
test.py
importsysprint(' '.join(sys.argv))
✅ Good:
$ python3.13 -m pdb -c continue -c quit test.py footest.py fooThe program finished and will be restarted🐛Bad:
$ python3.13 -m pdb -c continue -c quit test.py foo --barusage: pdb [-h] [-c command] (-m module | pyfile) [args ...]pdb: error: unrecognized arguments: --bar✅ Good:
$ python3.12 -m pdb -c continue -c quit test.py foo --bartest.py foo --barThe program finished and will be restartedBest regards!
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
- gh-125115: Pass unknown pdb command line args to script instead of fail #125424
- [3.13] gh-125115: Pass unknown pdb command line args to script instead of fail (GH-125424) #125547
- gh-125115 : Refactor the pdb parsing issue so positional arguments can pass through #140933
- [3.14] gh-125115 : Refactor the pdb parsing issue so positional arguments can pass through (GH-140933) #141635