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.
- 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
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'
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.
Preferences > Package Settings > Python Breakpoints
- 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
