{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"cwd": "${workspaceRoot}",
"executable": "build/2014DiansaiFengdong/2014DiansaiFengdong.elf",
"name": "Debug with OpenOCD",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"configFiles": [
"interface/stlink.cfg", //openocd下的文件
"target/stm32f4x.cfg"
],
"searchDir": [],
"runToEntryPoint": "main",
"showDevDebugOutput": "none"
},
]
}
创建Launch文件,把上面的代码复制进去,修改executable的地址,具体就是到EIDE那个文件的build去找,然后还要修改configfiles的内容,改成自己用的MCU型号,其它就没有要改的了