"); //-->
{ // 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 就可以了。
*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。