Skip to content

Instantly share code, notes, and snippets.

@zh4n7wm
Created April 26, 2019 13:23
Show Gist options
  • Save zh4n7wm/5d2f147352c3089f040e365d6c6b4065 to your computer and use it in GitHub Desktop.
Save zh4n7wm/5d2f147352c3089f040e365d6c6b4065 to your computer and use it in GitHub Desktop.
pytest can automatically drop into pdb

Lucas Werkmeister

today’s Python discovery: pytest can automatically drop into pdb (python debugger) on assertion failure (pytest --pdb)

@anthonypjshaw

Bonus: use --pdbcls for other debuggers, eg Ipdb is --pdbcls=IPython.terminal.debugger:Pdb

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