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