{ "version": "0.2.0", "configurations": [ { /* Common configuration for all OS */ "name": "C++ Launch", "type": "cppdbg", "request": "launch", "program": "${workspaceRoot}/BUILD/${workspaceRootFolderName}.elf", "targetArchitecture": "arm", "args": [], "stopAtEntry": true, "cwd": "${workspaceRoot}", "environment": [], "externalConsole": false, // This does not do shit //"debugServerArgs": "-f /usr/local/share/openocd/scripts/board/st_nucleo_f4.cfg -f /usr/local/share/openocd/scripts/interface/stlink-v2-1.cfg -c init -c 'reset init'", "debugServerArgs":"", "serverLaunchTimeout": 20000, "filterStderr": true, "filterStdout": false, "serverStarted": "GDB\\ server\\ started", "preLaunchTask": "build", "setupCommands": [ { "text": "-target-select remote localhost:3333", "description": "connect to target", "ignoreFailures": false }, { "text": "-file-exec-and-symbols ${workspaceRoot}/BUILD/${workspaceRootFolderName}.elf", "description": "load file", "ignoreFailures": false}, { "text": "-interpreter-exec console \"monitor endian little\"", "ignoreFailures": false }, { "text": "-interpreter-exec console \"monitor reset\"", "ignoreFailures": false }, { "text": "-interpreter-exec console \"monitor halt\"", "ignoreFailures": false }, { "text": "-interpreter-exec console \"monitor arm semihosting enable\"", "ignoreFailures": false }, { "text": "-target-download", "description": "flash target", "ignoreFailures": false } ], "logging": { "moduleLoad": true, "trace": true, "engineLogging": true, "programOutput": true, "exceptions": true }, "linux": { "MIMode": "gdb", "MIDebuggerPath": "/usr/bin/arm-none-eabi-gdb"//, }, "osx": { "MIMode": "gdb", "MIDebuggerPath": "/Users/philip/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gdb" //"debugServerPath": "/usr/local/bin/openocd" }, "windows": { "preLaunchTask": "make.exe", "MIMode": "gdb", "MIDebuggerPath": "C:\\Program Files (x86)\\GNU Tools ARM Embedded\\4.9 2015q3\\bin\\arm-none-eabi-gdb.exe", "debugServerPath": "pyocd-gdbserver.exe" } } ] }