How do I list all the attributes of an object in python pdb? August 12, 2023 by Tarik For pdb, you should be able to do p dir(a).