Skip to content

Instantly share code, notes, and snippets.

@webgtx
Created January 20, 2025 06:54
Show Gist options
  • Save webgtx/efd0b3cb1a204fea58ef3913b82ec98c to your computer and use it in GitHub Desktop.
Save webgtx/efd0b3cb1a204fea58ef3913b82ec98c to your computer and use it in GitHub Desktop.
How to set IPDB as default debbuger instead of PDB

The Issue

By default, when you call breakpoint() you enter PDB even if you have installed ipdb in your virtual environemnt.

Solution

Just export this environment variable

export PYTHONBREAKPOINT=ipdb.set_trace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment