Skip to content

Instantly share code, notes, and snippets.

@kylepollina
Last active January 21, 2021 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylepollina/3eeb67b614519e5f063e7c653e51feb8 to your computer and use it in GitHub Desktop.
Save kylepollina/3eeb67b614519e5f063e7c653e51feb8 to your computer and use it in GitHub Desktop.
Python Debugger (PDB++) Configs
import IPython
import json
from pprint import pprint as pp
from deepdiff import DeepDiff as diff
alias emb IPython.embed()
import pdb
class Config(pdb.DefaultConfig):
sticky_by_default = True
def setup(self, pdb):
print('Use "emb" to enter IPython shell')

PDB++ configs

These are my config files for pdb++, a drop-in replacement for Python's built-in debugger, pdb

You can embed IPython within pdb, and combined with my IPython Configs it makes for a very pleasant debugging experience.

https://i.imgur.com/OD6sArk.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment