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