Skip to content

Instantly share code, notes, and snippets.

@mikalv
Forked from obfusk/break.py
Created July 11, 2025 11:12
Show Gist options
  • Save mikalv/4d219063a7d49770a46049f4b490002f to your computer and use it in GitHub Desktop.
Save mikalv/4d219063a7d49770a46049f4b490002f to your computer and use it in GitHub Desktop.
python "breakpoint" (more or less equivalent to ruby's binding.pry); for a proper debugger, use https://docs.python.org/3/library/pdb.html
import code; code.interact(local=dict(globals(), **locals()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment