-
Notifications
You must be signed in to change notification settings - Fork 1
/
launch.json
44 lines (43 loc) · 1.39 KB
/
launch.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch with GDB",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/floppy/KERNEL.BIN",
"cwd": "${workspaceFolder}",
"args": [],
"targetArchitecture": "x86",
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"miDebuggerArgs": "",
"customLaunchSetupCommands": [
{
"text": "target remote localhost:1234",
"description": "Connect to QEMU remote debugger"
}
],
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"text": "file ${workspaceFolder}${input:debuggerTarget}",
"description": "Load binary."
}
],
"preLaunchTask": "Run QEMU with debugger"
}
],
"inputs": [
{
"id": "debuggerTarget",
"type": "promptString",
"description": "What do you want to debug?",
"default": "/os/kernel/bin/kernel.elf"
}
]
}