{ "version": "0.2.0", "configurations": [ { "cwd": "${workspaceFolder}", "executable": "${workspaceFolder}/Build/Debug/Application/Application.elf", "name": "Debug with OpenOCD", "request": "launch", "type": "cortex-debug", "runToEntryPoint": "main", "showDevDebugOutput": "none", "gdbPath": "${env:GD32_GCC_BIN}/arm-none-eabi-gdb.exe", "servertype": "openocd", "serverpath": "${env:GD32_OPENOCD_BIN}/openocd.exe", "svdFile": "${workspaceFolder}/GD32E230.svd", "configFiles": [ "${env:GD32_OPENOCD_SCRIPTS}/${config:gd32.openocd.targetConfig}" ], "serverArgs": [ "-s", "${env:GD32_OPENOCD_SCRIPTS}" ], "env": { "OPENOCD_SCRIPTS": "${env:GD32_OPENOCD_SCRIPTS}" }, "searchDir": [ "${workspaceFolder}" ], "preLaunchTask": "Build", "preRestartCommands": [ "load", "continue" ] }, { "cwd": "${workspaceFolder}", "executable": "${workspaceFolder}/Build/Debug/Application/Application.elf", "name": "Debug with J-Link", "request": "launch", "type": "cortex-debug", "runToEntryPoint": "main", "showDevDebugOutput": "none", "gdbPath": "${env:GD32_GCC_BIN}/arm-none-eabi-gdb.exe", "servertype": "jlink", "device": "${config:gd32.jlink.device}", "interface": "${config:gd32.jlink.interface}", "svdFile": "${workspaceFolder}/GD32E230.svd", "liveWatch": { "enabled": true, "samplesPerSecond": 1 }, "preLaunchTask": "Build", "preRestartCommands": [ "load", "continue" ] } ] }