【发布时间】:2022-04-28 03:17:55
【问题描述】:
我想在安装 cortex-debug 后启动调试器时使用 -x 参数调用arm-none-eabi-gdb。我在launch.json或setting.json怎么办,谢谢你的帮助。
【问题讨论】:
标签: linux visual-studio-code arm vscode-settings cross-compiling
我想在安装 cortex-debug 后启动调试器时使用 -x 参数调用arm-none-eabi-gdb。我在launch.json或setting.json怎么办,谢谢你的帮助。
【问题讨论】:
标签: linux visual-studio-code arm vscode-settings cross-compiling
您可以尝试将以下任务添加到我们的 tasks.json 中:
{
"label": "flash",
"type": "shell",
"command": "arm-none-eabi-gdb",
"args": [
"-x=\"${workspaceFolder}/.vscode/flash.gdb\"",
],
"group": "build",
"problemMatcher": [],
"dependsOn":["build"]
},
(当然,这假设您有另一个名为“build”的任务,并且您的“flash”任务依赖于它。这只是如何添加 -x 参数的示例)
【讨论】: