How can I write my launch.json so the application is closed on Restart Debugging? #1275
Unanswered
douglaslassance
asked this question in
Q&A
Replies: 1 comment 2 replies
-
First of all, "cargo" doesn't work that way: you should use it to build your binary, not run it. The debugger has to handle the launch. Try But aside from that, if you want to execute a task after debugging, VSCode has |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, Visual Studio Code shows a little popup when I
Restart Debugging
:Either choice
Terminate Task
orRestart Task
will not terminate the existing instance of the application, resulting in opening a second window.Here is my
launch.json
for reference:I tried to write a cross-platform kill
preLaunchTask
, but not luck.Thanks in advance for the help.
Beta Was this translation helpful? Give feedback.
All reactions