Python Breakpoints
Sublime Text plugin to set Python breakpoints
Details
Installs
- Total 67K
- Win 37K
- Mac 13K
- Linux 16K
| Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 1 | 1 | 1 | 1 | 2 | 1 | 2 | 2 | 2 | 3 | 4 | 1 | 1 | 2 | 2 | 1 | 1 | 0 | 1 | 2 | 3 | 2 | 0 | 1 | 4 | 3 | 3 | 2 | 0 | 0 | 5 | 2 | 0 | 0 | 2 | 1 | 2 | 0 | 2 | 2 | 0 | 1 | 0 | 1 | 6 | 0 |
| Mac | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 1 | 2 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 |
| Linux | 0 | 2 | 2 | 0 | 2 | 0 | 0 | 0 | 1 | 1 | 2 | 1 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 2 | 1 | 1 | 1 | 3 | 0 | 0 | 0 | 2 | 1 | 1 | 3 | 3 | 1 | 1 | 1 | 2 | 0 | 0 | 0 | 0 | 3 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text Python Breakpoints
This is a Sublime Text plugin allowing to quickly set Python breakpoints by injecting set_trace() call of pdb or other debugger of your choice.
Features
- breakpoint color highlighting, gutter icons
- auto indentation, auto save on toggle (off by default, configurable)
- your source file stores all breakpoints; plugin detects and recreates them on next load
- support for user comments to help navigate among many breakpoints
Screenshot

Install
Through Package Control (recommended):
Command Palette > Package Control: Install Package > Python Breakpoints
From GitHub: Clone this repository into your version/platform specific Packages directory. Example for Mac and ST2 (note the space in the target directory name):
cd ~/Library/Application Support/Sublime Text 2/Packages
git clone https://github.com/obormot/PythonBreakpoints 'Python Breakpoints'
Usage
Command Palette > Python Breakpoints: ...
Togglea breakpoint at current line (orctrl+shift+b)Gotoa selected breakpoint (orctrl+shift+g, orMenu>Goto>Goto Python Breakpoint...)Clear Allbreakpoints in current file (orMenu>Tools>Breakpoints>Clear All Python Breakpoints)
If one or multiple lines of code are selected, the Toggle command will wrap the selected lines in a try-except statement and a new breakpoint will be added under the except: section.
Settings
Preferences > Package Settings > Python Breakpoints
Caveats
- only space indentation is supported
- in some code fragments the plugin may incorrectly indent the breakpoint; in such cases just use Indent/Unindent keyboard shortcuts to move it into desired position