编程备忘录

编程中常用的、易忘的配置等记录

VSCode C++ debug 添加第三方动态库配置

{
    "name": "(gdb) Launch",
    "type": "cppdbg",
    "request": "launch",
    "program": "${workspaceFolder}/example.out",
    "args": [],
    
    "stopAtEntry": false,
    "cwd": "${workspaceFolder}",
    "externalConsole": false,
    "MIMode": "gdb",
    "linux": {
        //  设置环境变量
        "environment": [{"name":"LD_LIBRARY_PATH","value":"/brpc/output/lib/:$LD_LIBRARY_PATH"}]
    },
    "setupCommands": [
        {
            "description": "Enable pretty-printing for gdb",
            "text": "-enable-pretty-printing",
            "ignoreFailures": true
        }
    ]
}

如果您对本文有问题,评论,或建议,请访问GitHub Discussion board,这是一个Github讨论版,使用它可以进行更方便的交流。

not found!