/ .vscode / launch.json
launch.json
 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": "Debug",
 9              "type": "cppdbg",
10              "request": "launch",
11              "program": "${workspaceFolder}/_build/nrf52840_xxaa.out",
12              "args": [],
13              "stopAtEntry": false,
14              "cwd": "${workspaceFolder}",
15              "environment": [],
16              "externalConsole": false,
17  			"debugServerArgs": "",
18              "serverLaunchTimeout": 20000,
19              "filterStderr": true,
20              "filterStdout": false,
21              "preLaunchTask": "Build (Debug)",
22  			"MIMode": "gdb",
23              "setupCommands": [
24                  {
25                      "description": "Enable pretty-printing for gdb",
26                      "text": "-enable-pretty-printing",
27                      "ignoreFailures": true
28  				}
29              ],
30              "logging": {
31                  "moduleLoad": true,
32                  "trace": true,
33                  "engineLogging": true,
34                  "programOutput": true,
35                  "exceptions": true
36              },
37              "windows": {
38                  "MIDebuggerPath": "arm-none-eabi-gdb",
39  				"debugServerPath": "pyocd",
40  				"debugServerArgs": "gdb",
41                  "setupCommands": [
42                      { "text": "-environment-cd ${workspaceRoot}\\_build" },
43                      { "text": "-target-select remote localhost:3333", "description": "connect to target", "ignoreFailures": false },
44                      { "text": "-file-exec-and-symbols nrf52840_xxaa.out", "description": "load file", "ignoreFailures": false},
45                      { "text": "-interpreter-exec console \"monitor endian little\"", "ignoreFailures": false },
46                      { "text": "-interpreter-exec console \"monitor reset\"", "ignoreFailures": false },
47                      { "text": "-interpreter-exec console \"monitor halt\"", "ignoreFailures": false },
48                      { "text": "-interpreter-exec console \"monitor arm semihosting enable\"", "ignoreFailures": false },
49                      { "text": "-target-download", "description": "flash target", "ignoreFailures": false }
50                  ]
51              }
52          }
53      ]
54  }