Skip to content

Better error message when missing args to pdb command #126944

Closed
@hauntsaninja

Description

@hauntsaninja

Current behaviour:

λ ./python.exe -c 'breakpoint()'
> <string>(1)<module>()
-> breakpoint()
(Pdb) source
*** SyntaxError: invalid syntax

Proposed behaviour:

./python.exe -c 'breakpoint()'
> <string>(1)<module>()
-> breakpoint()
(Pdb) source
*** Missing arg!

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions