aboutsummaryrefslogtreecommitdiff
path: root/.vscode/launch.json
blob: 4ff91bbb00da1ae119d290138383823f2d45a5cf (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
44
45
46
47
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "ppusim debug",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/src/main",
            "windows": { "program": "${workspaceFolder}/src/main.exe" },
            "args": [],
            "cwd": "${fileDirname}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "preLaunchTask": "build",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description":  "Set Disassembly Flavor to Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ]
        },
        {
            "name": "stm32 debug",
            "cwd": "${workspaceFolder}",
            "executable": "${workspaceFolder}/src/main.elf",
            "request": "launch",
            "type": "cortex-debug",
            "servertype": "stlink",
            "preLaunchTask": "stm32/flash",
            "linux": {
                "stlinkPath": "/usr/bin/st-util"
            },
            "windows": {
                "armToolchainPath": "C:/msys64/mingw64/bin",
                "stlinkPath": "C:/msys64/mingw64/bin/st-util.exe",
                "gdbPath": "C:/msys64/mingw64/bin/gdb-multiarch.exe"
            }
        }
    ]
}