samedi 18 février 2012

inspect variables in python pdb

As far as I can search pdb does not provide a command to show the local state. But the python interpreter provides vars() and locals(), which are almost identical btw, and they seem to work in pdb too.

Combine vars() or locals() with the `pp` pdb command to watch them all at once.

Aucun commentaire:

Enregistrer un commentaire