-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Better error message when missing args to pdb command #126944
Copy link
Copy link
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement