How do I call the Python's list while debugging?

debugging, python

Solution

Just `print` it:

(Pdb) print list(values)

don't foget to add brackets for python3 version

(Pdb) print(list(values))

Problem

I have the following python code: ``` values = set([1, 2, 3, 4, 5]) import pdb pdb.set_trace() ``` I run the script and I am in the debugging shell: ``` (pdb) list(values) *** Error in argument: '(values)' (Pdb) ``` How can I call `list(values)` in the debugger without invoking the debugger's own `list` command?

Original source