You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project with many binaries. I'd like to be able to both run and debug a currently edited file but I don't think that's possible.
Currently, AFAIK, the options are:
Scroll up to the run|debug button by main and click it.
Add a launch configuration and task for each binary.
The first option isn't particularly great from a workflow perspective. The second option gets harder to manage as the number of binaries/examples increases. I'd like to be able to hit F5 to debug or Ctrl+F5 to run without debugging based on a selected binary/example name.
If I look at the CMake extension, it provides a launchTargetPath option that can be used to run the currently selected target (which can be selected from the bottom of the editor UI). This isn't too dissimilar to the second option, except it doesn't need a launch configuration and task to be created for each.
Is this already possible with rust-analyzer and I'm simply not aware of it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a project with many binaries. I'd like to be able to both run and debug a currently edited file but I don't think that's possible.
Currently, AFAIK, the options are:
run|debug
button bymain
and click it.The first option isn't particularly great from a workflow perspective. The second option gets harder to manage as the number of binaries/examples increases. I'd like to be able to hit
F5
to debug orCtrl+F5
to run without debugging based on a selected binary/example name.If I look at the CMake extension, it provides a
launchTargetPath
option that can be used to run the currently selected target (which can be selected from the bottom of the editor UI). This isn't too dissimilar to the second option, except it doesn't need a launch configuration and task to be created for each.Is this already possible with rust-analyzer and I'm simply not aware of it?
Beta Was this translation helpful? Give feedback.
All reactions