Python Breakpoints
Sublime Text plugin to set Python breakpoints
Details
Installs
- Total 66K
- Win 37K
- Mac 13K
- Linux 16K
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 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 2 | 6 | 2 | 2 | 2 | 3 | 1 | 2 | 5 | 5 | 3 | 4 | 2 | 0 | 3 | 8 | 2 | 2 | 4 | 5 | 2 | 3 | 3 | 3 | 1 | 0 | 3 | 1 | 2 | 2 | 6 | 5 | 8 | 5 | 2 | 0 | 4 | 6 | 4 | 2 | 3 | 3 | 6 | 3 | 2 |
Mac | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 2 | 2 | 0 | 1 | 1 | 5 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 1 | 3 | 1 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 1 | 4 | 3 | 1 | 1 | 1 | 1 | 2 | 1 | 1 | 3 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 3 | 0 | 1 | 3 | 1 | 2 | 0 | 0 | 0 | 4 | 2 | 3 | 1 | 1 | 0 | 1 | 3 | 0 | 0 | 0 | 2 | 0 | 2 | 0 |
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