github.com/icexin/eggos@v0.4.2-0.20220216025428-78b167e4f349/.vscode/launch.json (about)

     1  {
     2      // Use IntelliSense to learn about possible attributes.
     3      // Hover to view descriptions of existing attributes.
     4      // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
     5      "version": "0.2.0",
     6      "configurations": [
     7          {
     8              "name": "dlv-gdb",
     9              "type": "go",
    10              "request": "attach",
    11              "mode": "local",
    12              "cwd": "${workspaceFolder}",
    13              "debugAdapter": "legacy",
    14              "processId": 1234,
    15              "backend": "gdbstub",
    16              "dlvFlags": [
    17                  "${workspaceRoot}/kernel.elf",
    18              ],
    19          },
    20          {
    21              "type": "gdb",
    22              "request": "attach",
    23              "name": "Attach to qemu",
    24              // "executable": "./multiboot.elf",
    25              // "executable": "./boot64.elf",
    26              "executable": "./kernel.elf",
    27              "target": ":1234",
    28              "remote": true,
    29              "cwd": "${workspaceRoot}",
    30              "valuesFormatting": "parseText",
    31              // "gdbpath": "gdb",
    32              "gdbpath": "x86_64-elf-gdb",
    33          },
    34      ]
    35  }