Skip to content

Commit

Permalink
devtool: ide: add install dependency before gdbserver
Browse files Browse the repository at this point in the history
On VSCode, when running the debugger through launch.json, the program is
recompiled, gdbserver is started, and connected to. However, the task to
install the program on the target is not run, so the program is not
updated on the target.

Adding a dependency to the `install && deploy-target` task fixes this.
  • Loading branch information
deribaucourt committed Sep 27, 2023
1 parent ca80f50 commit 945f0d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/lib/devtool/ide.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,9 @@ def vscode_tasks(self, args, gdb_cross):
"label": pretty_id,
"type": "shell",
"isBackground": True,
"dependsOn": [
"install && deploy-target %s" % self.bpn
],
"command": start_script,
"problemMatcher": [
{
Expand Down

0 comments on commit 945f0d5

Please sign in to comment.