Skip to content

Instantly share code, notes, and snippets.

@jamie-ga
Created July 21, 2015 17:28
Show Gist options
  • Save jamie-ga/0ce7071389e6ccb229b4 to your computer and use it in GitHub Desktop.
Save jamie-ga/0ce7071389e6ccb229b4 to your computer and use it in GitHub Desktop.
Printing all the local variables in pdb.set_trace()
{k: v for k,v in locals().iteritems() if '__' not in k and 'pdb' not in k}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment