-
-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pdb: calling registered alias without command raises KeyError #109375
Comments
buermarc
added a commit
to buermarc/cpython
that referenced
this issue
Sep 13, 2023
An unkown alias without a given command should not register a new alias.
buermarc
added a commit
to buermarc/cpython
that referenced
this issue
Sep 13, 2023
An unkown alias without a given command should not register a new alias.
buermarc
added a commit
to buermarc/cpython
that referenced
this issue
Sep 13, 2023
An unkown alias without a given command should not register a new alias.
iritkatriel
pushed a commit
that referenced
this issue
Sep 14, 2023
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 14, 2023
…ciated command (pythonGH-109376) (cherry picked from commit 68a6f21) Co-authored-by: buermarc <44375277+buermarc@users.noreply.github.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 14, 2023
…ciated command (pythonGH-109376) (cherry picked from commit 68a6f21) Co-authored-by: buermarc <44375277+buermarc@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
pdb allows to register an alias without a command.
Calling that alias raises an unhandled exception.
The general syntax of
alias foo
is valid, as it allows to print the alias. However, if there is no command registered, calling it fails.I am unsure if raising an exception is the wanted behavior here. I think providing an error message which indicates that the current alias is unknown could be more appropriate, e.g.:
A solution could be to add an additional check to catch cases where one tries to register an alias without a command.
CPython versions tested on:
3.10, 3.11, CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: