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 CLI argument parsing errors with arguments to module targets #113548

Closed
Assignees
gaogaotiantian
Labels
type-bugAn unexpected behavior, bug, or error
@vivster7

Description

@vivster7

Bug report

Bug description:

Thepdb CLI is no longer correctly forwarding arguments to other tools.

Example reproduction:

  • It raises an errorpdb: error: argument pyfile: not allowed with argument -m
vscode ➜ ~ $ docker run -it --rm python:3.13.0a2 python -m pdb -m calendar 1usage: pdb [-h] [-c command] (-m module | pyfile) [args ...]pdb: error: argument pyfile: not allowed with argument -m

Expected behavior:

  • It starts thepdb debugger.
vscode ➜ ~ $ docker run -it --rm python:3.12 python -m pdb -m calendar 1> /usr/local/lib/python3.12/calendar.py(1)<module>()-> """Calendar printing functions(Pdb)

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Labels

type-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