Skip to content
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

Make pdb completion work with alias, convenience variables etc. #110944

Closed
gaogaotiantian opened this issue Oct 16, 2023 · 1 comment
Closed

Make pdb completion work with alias, convenience variables etc. #110944

gaogaotiantian opened this issue Oct 16, 2023 · 1 comment
Labels
type-feature A feature request or enhancement

Comments

@gaogaotiantian
Copy link
Member

gaogaotiantian commented Oct 16, 2023

Feature or enhancement

Proposal:

The current pdb completion could be improved for the following scenarios:

  1. It should support alias if there is any
  2. Convenience variables (starting with the $) should be supported as an expression
  3. For the "command" completion, if there's no command matches, then the user is probably typing an expression to display and we should just complete as expression.
# The user probably wants $_frame
(pdb) $<tab>

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

@gaogaotiantian gaogaotiantian added the type-feature A feature request or enhancement label Oct 16, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Nov 13, 2023
…mpletion test (pythonGH-111826)

(cherry picked from commit 1c7ed7e)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Nov 13, 2023
…mpletion test (pythonGH-111826)

(cherry picked from commit 1c7ed7e)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
encukou pushed a commit that referenced this issue Nov 14, 2023
…ompletion test (GH-111826) (GH-112024)

gh-110944: Move pty helper to test.support and add basic pdb completion test (GH-111826)
(cherry picked from commit 1c7ed7e)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
encukou pushed a commit that referenced this issue Nov 14, 2023
…ompletion test (GH-111826) (GH-112025)

gh-110944: Move pty helper to test.support and add basic pdb completion test (GH-111826)
(cherry picked from commit 1c7ed7e)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
@encukou
Copy link
Member

encukou commented Nov 14, 2023

All the PRs are merged! Thank you!
It looks like there's nothing more to do in this issue, so I'll close it.

@encukou encukou closed this as completed Nov 14, 2023
aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants