2.0 KiB
2.0 KiB
RemedyBG debugger integration with Sublime Text
I frequently find that nothing at the present moment beats the Visual Studio workflow. You just click Ctrl+F10 and you are inspecting the code you have just written. This package seeks to recreate that experience in Sublime Text but without the buggy and slow Visual Studio, thanks to a much better debugger that is RemedyBG and it's user API!
You can buy the debugger here:
Install
cd "%appdata%\Sublime Text\Packages"
git clone https://github.com/krzosa/Sublime_RemedyBG
Optional:
- If remedybg is not on your path or has a different name, change remedy_executable in your personal sublime settings, look at
Remedy.sublime-settingsfor syntax reference. - Setup visual studio developer's prompt or
vcvarsall.bat, look at vcvarsall section in readme.
Usage
By default plugin binds to standard debugger hotkeys. You can edit them in your personal sublime keybindings, look at Default.sublime-keymap for syntax reference.
Ctrl + F10: Run to cursorF5: Start debuggingShift + F5: Stop debuggingF9: Add breakpointCtrl + F9: Add conditional breakpointCtrl + Shift + F5: Restart debugging
Bonus: Setting up Microsoft compiler enviroment with vcvarsall.bat
If you are developing using remedybg it seems pretty obvious that you would want access to the Microsoft compiler so the package is shipping with setup_vsvars.py.
- Copy content of
setup_vcvarsallto yourUserfolder. - You need to provide path to your vcvarsall inside your global sublime settings/preferences, use
Remedy.sublime-settingsfor reference.
Credits
- septag - plugin is based on his 10x plugin https://github.com/slynch8/10x/blob/main/PythonScripts/RemedyBG/RemedyBG.py
- OdatNurd - one of the sublime developers showed how to setup vsvarsall in sublime https://stackoverflow.com/questions/39881091/how-to-run-sublimetext-with-visual-studio-environment-enabled/