aboutsummaryrefslogtreecommitdiff
path: root/.vscode/launch.json
diff options
context:
space:
mode:
Diffstat (limited to '.vscode/launch.json')
-rw-r--r--.vscode/launch.json17
1 files changed, 15 insertions, 2 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index b9d0a1e..cba84f4 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -5,7 +5,7 @@
"name": "(gdb) QEMU",
"type": "cppdbg",
"request": "launch",
- "program": "${workspaceFolder}/build/Debug/bin/_kernel",
+ "program": "${workspaceFolder}/build/bin/${input:build_type}/_kernel",
"MIMode": "gdb",
"miDebuggerServerAddress": "localhost:1234",
"cwd": "${workspaceFolder}",
@@ -18,7 +18,7 @@
},
{
"description": "Load file",
- "text": "-file-exec-and-symbols ${workspaceFolder}/build/Debug/bin/_kernel"
+ "text": "-file-exec-and-symbols ${workspaceFolder}/build/bin/${input:build_type}/_kernel"
},
{
"description": "Set breakpoint on _start",
@@ -26,5 +26,18 @@
}
]
}
+ ],
+ "inputs": [
+ {
+ "id": "build_type",
+ "type": "pickString",
+ "default": "Debug",
+ "description": "The build type to boot",
+ "options": [
+ "Debug",
+ "Release",
+ "RelWithDebInfo"
+ ]
+ }
]
} \ No newline at end of file