[New-bugs-announce] [issue30938] pdb lacks debugger command to list and show all user-defined variables

David Rieger report at bugs.python.org
Sat Jul 15 11:44:42 EDT 2017


New submission from David Rieger:

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.

----------
components: Library (Lib)
messages: 298398
nosy: David Rieger
priority: normal
severity: normal
status: open
title: pdb lacks debugger command to list and show all user-defined variables
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30938>
_______________________________________


More information about the New-bugs-announce mailing list