本文主要是介绍使用 Visual Studio Code (VSCode) 调试已经启动的 OpenOCD 托管的 RISC-V 程序,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
自用。
{// 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "(gdb) 启动","type": "cppdbg","request": "launch","program": "${workspaceFolder}/build/hello-world","args": [],"stopAtEntry": false,"cwd": "${fileDirname}","environment": [],"externalConsole": false,"MIMode": "gdb","miDebuggerPath": "riscv64-unknown-elf-gdb","useExtendedRemote": true,"miDebuggerServerAddress": "localhost:3333","setupCommands": [{"description": "为 gdb 启用整齐打印","text": "-enable-pretty-printing","ignoreFailures": true}]}]
}
这篇关于使用 Visual Studio Code (VSCode) 调试已经启动的 OpenOCD 托管的 RISC-V 程序的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!