Interactively debugging C in Sublime Text 3. I had a bit of an journey yesterday getting gdb, (an interactive debugger for gcc) compiling and working in Sublime Text 3 (via the SublimeGDB package), so I thought I should document the issues I ran into & what finally worked, for others and perhaps my future self. Aug 25, 2021 If you are a Mac user, you can use a Sublime Text editor. Note: Sublime text editor is available for Linux, Windows, and Mac. If you purchase the pro version, you need a single license to run it on any of the systems you own. Even, you can use the free version which is more than sufficient in your learning phase.
BrowseRun shell commands like git, rvm, rspec, ls, etc. with Bash, Zsh and others inside your Sublime Text 3.
Fresh, Local Comfort Food And The Finest Beer At Sublime Alehouse
Installs
- Total21K
- Win8K
- Mac6K
- Linux6K
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 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 1 | 3 | 3 | 2 | 3 | 0 | 0 | 4 | 3 | 2 | 3 | 1 | 1 | 3 | 1 | 1 | 5 | 2 | 1 | 0 | 0 | 3 | 2 | 1 | 0 | 1 | 1 | 0 | 1 | 2 | 1 | 0 | 2 | 0 | 1 | 3 | 3 | 1 | 3 | 3 | 1 | 1 | 2 | 2 | 4 |
Mac | 0 | 0 | 0 | 4 | 3 | 1 | 2 | 1 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 2 | 1 | 1 | 1 | 1 | 0 | 2 | 0 | 0 | 2 | 1 | 2 | 1 | 1 | 3 | 0 | 0 | 3 | 0 | 0 | 1 | 0 | 4 | 1 | 0 | 0 | 1 | 2 | 3 | 0 |
Linux | 0 | 2 | 0 | 1 | 3 | 2 | 2 | 0 | 1 | 1 | 2 | 1 | 0 | 1 | 1 | 2 | 1 | 4 | 0 | 1 | 0 | 1 | 0 | 0 | 3 | 0 | 3 | 0 | 2 | 0 | 2 | 1 | 0 | 2 | 0 | 0 | 1 | 3 | 0 | 2 | 2 | 3 | 1 | 0 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
Run shell commands like git, rvm, rspec, ls, etc. with Bash, Zsh and others inside your Sublime Text 3.
- Custom Shortcuts
- Common Problems
- Some Cool Demos
Command Palette
Shell Exec: Open shell_exec_open
Default Shortcuts
- Linux: ctrl + shift + c
- Mac: shift + super + c
- Windows: ctrl + shift + c
Settings
User/Preferences.sublime-settings
:
Custom Shortcuts
shell_exec_open
: Open Shell Exec box to input some command.
shell_exec_run
: Runs a predefined command.
User/Default (Linux).sublime-keymap
:
Cached
Command Format Syntax
Available variables:* ${input}
: Input from Shell Exec box.* ${region}
: Selected text.* ${row}
: Selected row number or the cursor position at file.* ${file_name}
: ShellExec.py* ${file}
: /home/user/.config/sublime-text-3/Packages/shell-exec/ShellExec.py* ${packages}
: /home/user/.config/sublime-text-3/Packages* ${file_base_name}
: ShellExec* ${platform}
: Linux* ${file_extension}
: py* ${file_path}
: /home/user/.config/sublime-text-3/Packages/shell-exec* ${folder}
: /home/user/.config/sublime-text-3/Packages/shell-exec
Common Problems
RVM Command, ~/.bashrc, ~/.bash_profile, ~/.zshrc…
You can load RVM and profile files with login mode:
Or… You can load a custom sh file:
my-config-loader-file.sh
: Loading ~/.bashrc simulating interactive shell:
my-config-loader-file.sh
: Loading RVM command:
Debugging
Just enable the debug to see panel outputs:User/Preferences.sublime-settings
: