PrintDebugger
⌨ Sublime Text plugin for easy insertion of print/debug statements
Details
Installs
- Total 406
- Win 251
- Mac 85
- Linux 70
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 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
🤖 PrintDebugger
PrintDebugger is a fully customizable Sublime Text plugin that allows easy insertion of both debugging and empty print statements.
🎬 Demonstration
PrintDebugger: Print Debug
:
PrintDebugger: Print Debug (Before and After)
:
💻 Installation
The easiest way to install PrintDebugger is through Package Control. After it is enabled inside Sublime Text, open the command palette and find Package Control: Install Package and press ENTER
. Then, find PrintDebugger in the list. Press ENTER
again, and this plugin is installed!
📈 Usage
The plugin includes the command print_debug
, which can be run in the command palette as PrintDebugger: Print Debug
. There is a variant of the command with argument before_and_after
set to true
: PrintDebugger: Print Debug (Before and After)
.
To print out a meaningful message containing the name and value of a variable:
- Click on or select that variable
- Run the
PrintDebugger: Print Debug
command
To view the values of a variable before and after a line:
- Click on or select that variable
- Run the
PrintDebugger: Print Debug (Before and After)
command
To insert an empty print statement at the cursor:
- Run the
PrintDebugger: Print Debug
command
⚙ Customization
The PrintDebugger plugin is fully customizable.
🔧 Preferences
The syntax of several languages are included by default when the plugin is installed. The syntax of print/debug statements, scopes, and file extensions associated with each language can be customized. New syntax can also be added in settings.
To modify or add print/debug syntax, run the Preferences: PrintDebugger
command in the command palette.
⌨ Keybindings
Keybindings can be created for the commands.
- Run the
Preferences: PrintDebugger Key Bindings
command in the command palette. - Add your keybindings!
Below is an example of the keybinding file:
[
{
"keys": ["alt+d"],
"command": "print_debug"
},
{
"keys": ["alt+shift+d"],
"command": "print_debug",
"args": { "before_and_after": true }
}
]