新闻| 论坛| 博客| 在线研讨会
ubuntu vscode gdb 配置注意事项
电子禅石| 2023-09-06 18:13:32 阅读:7414 发布文章

{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(gdb) 启动", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/build/build_linux32/test_v2x", "args": ["test_msg_digest_id","1"],//程序运行输入的参数。 "stopAtEntry": false, "cwd": "${workspaceFolder}/build/build_linux32",#程序运行的目录 // "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "gdb", "additionalSOLibSearchPath":"${workspaceFolder}/build/build_linux32/lib", //库的路径 "setupCommands": [ { "description": "为 gdb 启用整齐打印", "text": "-enable-pretty-printing", "ignoreFailures": true } ] } ] }

之前出现过调试进不了断点,因为编译时候CMAKE 编译版本时Release,改成Debug 就可以了。

DCMAKE_BUILD_TYPE=Debug


*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。

参与讨论
登录后参与讨论
属于自己的技术积累分享,成为嵌入式系统研发高手。
最近文章
签名类型
2024-04-29 16:28:59
cat 文件名
2024-04-29 15:05:34
推荐文章
最近访客