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

pdb lacks debugger command to list and show all user-defined variables #75121

Closed
FrontSide mannequin opened this issue Jul 15, 2017 · 2 comments
Closed

pdb lacks debugger command to list and show all user-defined variables #75121

FrontSide mannequin opened this issue Jul 15, 2017 · 2 comments
Labels
3.7 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@FrontSide
Copy link
Mannequin

FrontSide mannequin commented Jul 15, 2017

BPO 30938
Nosy @FrontSide
PRs
  • bpo-30938: Add pdb command to show user-owned variables  #2732
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2017-07-15.15:44:42.001>
    labels = ['3.7', 'type-feature', 'library']
    title = 'pdb lacks debugger command to list and show all user-defined variables'
    updated_at = <Date 2017-07-16.11:30:04.049>
    user = 'https://github.com/frontside'

    bugs.python.org fields:

    activity = <Date 2017-07-16.11:30:04.049>
    actor = 'python-dev'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2017-07-15.15:44:42.001>
    creator = 'David Rieger'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30938
    keywords = []
    message_count = 1.0
    messages = ['298398']
    nosy_count = 1.0
    nosy_names = ['David Rieger']
    pr_nums = ['2732']
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue30938'
    versions = ['Python 3.7']

    @FrontSide
    Copy link
    Mannequin Author

    FrontSide mannequin commented Jul 15, 2017

    IPython's "who" and "whos" command provide a way to list all user-defined variables and inspect them, respectively.

    At the moment, a way to work around this would be by either using e.g. "pp locals()" to list all local variables, this would however also display non-user-owned variables which makes the output less readable.
    Another option would be to open an ipython shell inside the pdb shell, this is however unintuitive, just to achieve such a simple task.

    pdb should offer a "who" command to list the names of all user-owned variables and a "whos" command to list all variables including their type and the assigned value, as known from ipython.

    @FrontSide FrontSide mannequin added 3.7 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jul 15, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @iritkatriel
    Copy link
    Member

    Closing as this was abandoned by the OP.

    @iritkatriel iritkatriel closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant