-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimspector.json
79 lines (74 loc) · 2.46 KB
/
.vimspector.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"$schema": "https://puremourning.github.io/vimspector/schema/vimspector.schema.json",
"configurations": {
"attach and reset": {
"adapter": "vscode-cpptools-openocd",
"variables": {
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/target/Debug/firmware.elf",
"port": "${unusedLocalPort}"
},
"configuration": {
"request": "launch",
"program": "${program}",
"stopAtEntry": false,
"externalConsole": false
}
},
"attach and reset (stop at entry)": {
"extends": "attach and reset",
"configuration": {
"request": "launch",
"stopAtEntry": true
}
}
},
"adapters": {
"vscode-cpptools-arm-gdb": {
"extends": "vscode-cpptools",
"configuration": {
"MIMode": "gdb",
"MIDebuggerPath": "arm-none-eabi-gdb",
"MIDebuggerServerAddress": "localhost:${port}",
"targetArchitecture": "arm"
// "logging": {
// "exceptions": true,
// "moduleLoad": true,
// "programOutput": true,
// "engineLogging": true,
// "trace": true
// }
}
},
"vscode-cpptools-openocd": {
"extends": "vscode-cpptools-arm-gdb",
"configuration": {
"debugServerPath": "openocd",
"debugServerArgs": "-c \"gdb_port ${port}; tcl_port disabled; telnet_port disabled\" -f interface/stlink.cfg -c \"transport select hla_swd\" -f target/stm32f4x.cfg -c \"$$_TARGETNAME configure -event gdb-detach { resume }\" -c \"init\" -c \"reset halt\" -c \"arm semihosting enable\"",
"serverStarted": "Listening on port \\d+ for gdb connections",
"filterStdout": false,
"filterStderr": true
}
},
"vscode-cpptools-stutil": {
"extends": "vscode-cpptools-arm-gdb",
"configuration": {
"debugServerPath": "st-util",
"debugServerArgs": "-p ${port} --semihosting",
"serverStarted": "Listening at \\*:\\d+",
"filterStdout": false,
"filterStderr": true
}
},
"vscode-cpptools-pyocd": {
"extends": "vscode-cpptools-arm-gdb",
"configuration": {
"debugServerPath": "pyocd",
"debugServerArgs": "gdbserver --target=stm32f411ceux --port=${port} -O semihost_console_type=stdx -O resume_on_disconnect=true --semihosting",
"serverStarted": "GDB server started on port \\d+",
"filterStdout": false,
"filterStderr": true
}
}
}
}