Closed galvesribeiro closed 4 years ago
This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines.
Happy Coding!
Please file against the C++ extension.
@weinand it is not a CPP extension problem. It is the fact the VSCode isn't allowing me to run a task in back ground as it should. That is why I've opened the issue here...
@weinand I've opened it there but they said tasks.json
problems are VSCode team problem... So, you say it is their problem, they said it is yours... Who can we finally hope for support?
@weinand The title is misleading. @galvesribeiro is trying to call a task that he wants to leave running in the background and then to start debugging but the problem is he calls this task and it hangs there, never getting to the actual debugging step. If this is something in the extension that we need to fix, can you point me on where to look?
I think we actually fixed this already with https://github.com/microsoft/vscode/issues/66561 @galvesribeiro can you please see if your issue occurs in the latest release of VS Code?
Hello @alexr00!
It was fixed with that PR indeed. The problem was timing. Just like on the PR repro case you linked.
Thank you!
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!