"configurations": [
        {
            "name": "g++ - 生成和调试活动文件",
            "type": "cppdbg",
            "request": "launch",
            "program": "************************",
            "args": ["**************************"],
            "stopAtEntry": false,
            "cwd": "*****************************",
           "environment": [{"name": "PYTHONPATH", "value": "/home/hl/code/DeConvV2/"}],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "为 gdb 启用整齐打印",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ],
            "preLaunchTask": "C/C++: g++ build active file",
            "miDebuggerPath": "/usr/bin/gdb"
        }
    ]

更多常用参数的解释和示例,参考

vscode调试时几个常用参数的含义和设置总结_子燕若水的博客-CSDN博客request#指示配置节是要启动程序还是要连接到已在运行的实例。Indicates whether the configuration section is intended tolaunchthe program orattachto an already running instance.args#启动程序时传递给程序的命令行参数的JSON数组。JSON array of command-line arguments to pass to the program whe...https://blog.csdn.net/u010087338/article/details/121282932 

GitHub 加速计划 / js / json
41.72 K
6.61 K
下载
适用于现代 C++ 的 JSON。
最近提交(Master分支:1 天前 )
960b763e 2 个月前
8c391e04 5 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐