Remove build system, add search for remedy file, remove all in one
Cleaning up the plugin a bit, seems like going the build system route was not worth it. Minimal gains, a lot of additional mental overhead. As much as I love sublime the plugin api is not great for more complicated things. Instead by default plugin seeks for a nearby remedy file, hopefully this will help a bit.
This commit is contained in:
58
README.md
58
README.md
@@ -1,11 +1,7 @@
|
||||
|
||||
### RemedyBG debugger integration with Sublime Text
|
||||
|
||||
I frequently find that nothing 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!
|
||||
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:
|
||||
|
||||
@@ -24,57 +20,25 @@ git clone https://github.com/krzosa/Sublime_RemedyBG
|
||||
|
||||
Optional:
|
||||
|
||||
- If remedybg is not on your path or has different name, change remedy_executable in your personal sublime settings, look at ```Remedy.sublime-settings``` for syntax reference.
|
||||
- If remedybg is not on your path or has a different name, change remedy_executable in your personal sublime settings, look at ```Remedy.sublime-settings``` for 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 cursor
|
||||
- F5: Start debugging
|
||||
- Shift + F5: Stop debugging
|
||||
- F9: Set breakpoint
|
||||
- Ctrl + Shift + F5 - Restart debugging
|
||||
- `Ctrl + F10`: Run to cursor
|
||||
- `F5`: Start debugging
|
||||
- `Shift + F5`: Stop debugging
|
||||
- `F9`: Add breakpoint
|
||||
- `Ctrl + F9`: Add conditional breakpoint
|
||||
- `Ctrl + Shift + F5`: Restart debugging
|
||||
|
||||
### Bonus: Build before debugging
|
||||
|
||||
Sadly Sublime doesn't allow for querying of currently chosen build system.
|
||||
Neither does it allow for effective hook into the builtin ```build``` command
|
||||
with custom arguments as such this package needs to emulate the ```build``` command.
|
||||
|
||||
To make it so that you can build before debugging you need to: firstly change
|
||||
```Remedy.sublime-settings```, secondly you need to have
|
||||
a project / project file. That project file needs a build system, if there
|
||||
is only one build system, everything is going to work. If there are more,
|
||||
you will need to add a field called ```remedy_build_system```, here is an example:
|
||||
|
||||
```
|
||||
{
|
||||
"folders":
|
||||
[
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"remedy_target": "this_is_optional/main.exe",
|
||||
"remedy_build_system": "first",
|
||||
"build_systems":
|
||||
[
|
||||
{
|
||||
"name": "first",
|
||||
"shell_cmd": "build.bat"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
### 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 additionally the package is shipping with the ```setup_vsvars.py```.
|
||||
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```.
|
||||
|
||||
1. Copy content of ```setup_vcvarsall``` to your ```User``` folder for normal build commands or to ```Sublime_RemedyBG``` dir for build before debugging.
|
||||
2. You need to update the path to your vcvarsall inside your global sublime settings/preferences, use ```Remedy.sublime-settings``` for reference.
|
||||
|
||||
If you want vcvars for both remedy_build and normal sublime build, you will need to have 2 copies, one in remedy folder and the other in user folder. You need 2 copies because it seems that sublime heavily sandboxes packages from eachother so this package cannot influence the global enviroment. If anyone has any ideas how to make it global I would be happy to hear them.
|
||||
1. Copy content of ```setup_vcvarsall``` to your ```User``` folder.
|
||||
2. You need to provide path to your vcvarsall inside your global sublime settings/preferences, use ```Remedy.sublime-settings``` for reference.
|
||||
|
||||
### Credits
|
||||
|
||||
|
||||
Reference in New Issue
Block a user