Skip to content

pdb repeats w 0 on empty line when there are commands in cmdqueue #120769

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

Closed
gaogaotiantian opened this issue Jun 20, 2024 · 0 comments
Closed

pdb repeats w 0 on empty line when there are commands in cmdqueue #120769

gaogaotiantian opened this issue Jun 20, 2024 · 0 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@gaogaotiantian
Copy link
Member

gaogaotiantian commented Jun 20, 2024

Bug report

Bug description:

If you do a n ;; p 1 in pdb, the next time you entry an empty line (meant for repeat last command), it will repeat w 0 due to #119882. It's supposed to repeat p 1 (arguably n ;; p1 but we never do that). As user never inputs w 0 by their own, the current behavior might not be desired.

CPython versions tested on:

3.12, 3.13, CPython main branch

Operating systems tested on:

No response

Linked PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant