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
- auto indentation, auto save on toggle (off by default, configurable)
- your source file stores all breakpoints; plugin detects and recreates them on next load
Through Package Control:
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: ...
Toggle
a breakpoint at current line (orctrl+shift+b
)Goto
a selected breakpoint (orctrl+shift+g
, orMenu
>Goto
>Goto Python Breakpoint...
)Clear All
breakpoints in current file (orMenu
>Tools
>Breakpoints
>Clear All Python Breakpoints
)
Preferences
> Package Settings
> Python Breakpoints
- only space indentation is supported
- your mileage may vary with non-PEP8 one-liners or code without import statements