aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2024-09-17 16:41:03 +0000
committerFelix Morgner <felix.morgner@ost.ch>2024-09-17 16:41:08 +0000
commitab9fb7e488e3a434d583da879742c6018f297ed8 (patch)
tree2c840a399f793b0fdd1bd5a2a1190e12c09e178c
parent0f2d9fced597a25b2101f2e106376f94c554413f (diff)
downloadteachos-ab9fb7e488e3a434d583da879742c6018f297ed8.tar.xz
teachos-ab9fb7e488e3a434d583da879742c6018f297ed8.zip
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.
-rw-r--r--.vscode/tasks.json17
1 files 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": [