From ab9fb7e488e3a434d583da879742c6018f297ed8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 17 Sep 2024 16:41:03 +0000 Subject: ide: add problem matcher for gdb launch While this is not strictly necessary for a standalone launch, Visual Studio Code is not happy when we have a long running (longer than the debug session) preLaunchTask without a problem matcher. In essence, we define the task as having finished launching, when QEMU informs us about the open VNC port. --- .vscode/tasks.json | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index fabf8e3..8b127c4 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,7 +2,7 @@ "version": "2.0.0", "tasks": [ { - "label": "Debug-Boot in QEMU", + "label": "QEMU (gdb)", "command": "qemu-system-x86_64", "type": "shell", "args": [ @@ -18,10 +18,21 @@ "reveal": "always" }, "group": "none", - "problemMatcher": [] + "problemMatcher": [ + { + "pattern": { + "regexp": "." + }, + "background": { + "activeOnStart": true, + "beginsPattern": ".", + "endsPattern": "VNC server running on" + } + } + ] }, { - "label": "Boot in QEMU", + "label": "QEMU", "command": "qemu-system-x86_64", "type": "shell", "args": [ -- cgit v1.2.3