The print statement for a sequence type works enough in the pdb console tray, as shown below.
>>> import pdb >>> l=[9,0] >>> def j():l=[1,2,3] ... >>> pdb.run('j()') > <string>(1)<module>() (Pdb) continue >>> pdb.run('j()') > <string>(1)<module>() (Pdb) print l [1, 2, 3]
Some print obj.name statements will also work to access the attribute of an object.
source share