-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code: Add release profile task #80
Comments
@rubberduck203 any thoughts on this one? |
I use a |
Would you like me to create a PR for my above solution? Or create an issue on the RLS VsCode plugin tracker, to ask for help? |
This issue is already open for the ability for RLS provided build tasks to perform a build in release mode. I would go ahead and open a PR. Quick discussion first though. I’m not sure release should be the default. I think the default should be debug so the debugger works as expected out of the box. Thoughts on that? |
@pigrew I built on your solution and opened a PR that adds release, examples, and a clean task. |
Moving some of the conversation here from PR #82.
|
I’ve been thinking about this trying to come up with what the expected behavior of this task would be. Here are my current thoughts.
Is that reasonable behavior @pigrew? What is your current workflow like? |
That would be fine with me. I'm used to it pausing at init/main when I load the program (this is what Eclipse-based GUIs do that I've used do by default), however I don't have a strong preference either way on what the default should be. Pausing may be desired so that the user experience is as similar as possible between debug and release builds. In some cases, I want it to pause at main so that I can trigger an oscilloscope. Pausing also gives me a clear indication that the new binary was loaded. The advantage of not pausing would be that it's one fewer button for the user to click during each debug cycle. |
Ok. Sounds like it should pause then. |
So, life got crazy right around then and I lost track of this. |
With the provided VS Code build task, I end up with an unoptimized debug build. Could a new task be added for the "release" profile?
(I can't figure out the syntax for specified arguments to a "cargo" task type, but did get it working by changing it to use the "process" type. Perhaps this is a limitation of the RLS plugin?)
The following task works for me (but I don't know if it is the desired solution):
The text was updated successfully, but these errors were encountered: