Python Breakpoints
Sublime Text plugin to set Python breakpoints
Details
Installs
- Total 54K
- Win 29K
- Mac 11K
- Linux 13K
Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 15 | 11 | 12 | 10 | 8 | 14 | 10 | 20 | 10 | 11 | 11 | 8 | 8 | 13 | 17 | 20 | 11 | 13 | 9 | 13 | 19 | 10 | 14 | 9 | 13 | 15 | 12 | 20 | 15 | 11 | 17 | 12 | 14 | 13 | 11 | 17 | 16 | 16 | 14 | 9 | 7 | 13 | 11 | 18 | 23 |
Mac | 0 | 1 | 1 | 4 | 1 | 4 | 3 | 0 | 3 | 4 | 7 | 1 | 2 | 3 | 2 | 3 | 7 | 2 | 2 | 1 | 1 | 3 | 4 | 4 | 4 | 1 | 2 | 2 | 1 | 3 | 2 | 1 | 2 | 2 | 1 | 1 | 0 | 6 | 2 | 3 | 1 | 1 | 0 | 4 | 5 | 0 |
Linux | 0 | 4 | 4 | 1 | 3 | 3 | 7 | 3 | 3 | 6 | 4 | 2 | 3 | 6 | 6 | 4 | 4 | 3 | 1 | 1 | 0 | 3 | 2 | 4 | 4 | 2 | 3 | 2 | 1 | 3 | 10 | 2 | 4 | 5 | 1 | 7 | 3 | 4 | 4 | 7 | 4 | 3 | 3 | 5 | 4 | 5 |
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: ...
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
)
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