【问题标题】:VSCode cppdbg lost options "args" when using "customLaunchSetupCommands"VSCode cppdbg 在使用“customLaunchSetupCommands”时丢失了选项“args”
【发布时间】:2021-11-05 21:25:27
【问题描述】:

在 VSCode cppdbg debug launch.json 中,我在“args”中设置了 a/b/c,但在使用“customLaunchSetupCommands”后它丢失了它们。

{ “名称”:“ccc”, “类型”:“cppdbg”, “请求”:“启动”, “程序”:“dddd”, "cwd": "${workspaceFolder}", “stopAtEntry”:假, “外部控制台”:假, “参数”:[ “一=主要”, "b=100", “c=222” ],

        "MIMode": "gdb",
        "miDebuggerPath": "xxx",
        "targetArchitecture": "x86_64",
        "miDebuggerServerAddress": "",
        "setupCommands": [
            {
                "text": "-enable-pretty-printing",
                "ignoreFailures": true
            }
        ],
        "customLaunchSetupCommands": [

            {
                "text": "file xxx"
            },
  
        ],
        "launchCompleteCommand": "exec-run",
        "logging": {
            "trace": true,
            "engineLogging": true
        },
    },

【问题讨论】:

    标签: visual-studio-code


    【解决方案1】:

    如果没有 customLaunchSetupCommands,它会很好地工作。

    【讨论】:

    • 请添加更多详细信息以扩展您的答案,例如工作代码或文档引用。
    猜你喜欢
    • 2019-01-11
    • 1970-01-01
    • 1970-01-01
    • 2016-04-26
    • 2012-09-12
    • 2018-04-11
    • 2014-01-06
    • 2020-11-12
    • 1970-01-01
    相关资源
    最近更新 更多