Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pdb: can't debug a script with arguments #125115

Closed
Assignees
gaogaotiantian
Labels
3.13bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
@Jamim

Description

@Jamim

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 restarted

Best regards!

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Labels

3.13bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp