Closed galvesribeiro closed 3 years ago
@galvesribeiro I don't have as much experience with task.json
as that is a feature wholly owned by the actual VS Code team (https://github.com/microsoft/vscode) but it looks like that task isn't completing so its hung on step 5 and you are wondering what can be done to get around it.
I think the way tasks.json is supposed to work is that it is sequential and that each task is meant to complete before the next "task" (or debug) is supposed to be kicked off. You may want to reach out to that team first to see if what you are attempting is supposed to work or not.
@pieandcakes Thanks for the reply. The problem is that they told it is an extension problem and they told me to open the issue here (https://github.com/microsoft/vscode/issues/91342#issuecomment-590777355).
So, who would be the one that can help us? o.O
This issue has been closed automatically because it's labeled as 'external'.
Hello folks!
I have the following
tasks.json
:And the following
launch.json
:Following the numbers on the
tasks
array you will see that when I press F5, it build and pack the project (1), deploy it to the target device (3), ask the device to go into the debug mode (4).The step 4 is where my problem exist. In order for the device to be able to really start the
gdbserver
it requires me first to connect over telnet to the port 2342. So when I run this project I see this on the terminal:That means the debugger actually started, and is listening on 2345. If you see from the
launch.json
it should be ok and the debugger should just be able to attach to it right? Except it doesn't. Even marking the task 4 as"isBackground": true
, the task still hanging and VSCode still stuck on the running progress bar:The fact is that, in order to debug, I need to follow the following tasks:
gdb
to 2345gdb
andtelnet
must be killedThe current configs hand on 5.
This issue is basically "how can I run a background task that is used as
preLaunchTask
and that must keep the process running while the debugging session is running without block the debugger to actually run?".So, can anyone point me what am I doing wrong with those configs in order to support that scenario?
Thank you! I really appreciate any help!