Sublime Text plugin to set 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.
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: ...
Toggle
a breakpoint at current line (or ctrl+shift+b
)Goto
a selected breakpoint (or ctrl+shift+g
, or Menu
> Goto
> Goto Python Breakpoint...
)Clear All
breakpoints in current file (or Menu
> 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