aboutsummaryrefslogtreecommitdiff
path: root/.vscode/launch.json
blob: cba84f4ea40fabd22bb9410ae81a5c66eec84e36 (plain)
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
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb) QEMU",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/build/bin/${input:build_type}/_kernel",
            "MIMode": "gdb",
            "miDebuggerServerAddress": "localhost:1234",
            "cwd": "${workspaceFolder}",
            "stopAtEntry": true,
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "Load file",
                    "text": "-file-exec-and-symbols ${workspaceFolder}/build/bin/${input:build_type}/_kernel"
                },
                {
                    "description": "Set breakpoint on _start",
                    "text": "-break-insert _start"
                }
            ]
        }
    ],
    "inputs": [
        {
            "id": "build_type",
            "type": "pickString",
            "default": "Debug",
            "description": "The build type to boot",
            "options": [
                "Debug",
                "Release",
                "RelWithDebInfo"
            ]
        }
    ]
}