1

In VSCode cppdbg debug launch.json, I set a/b/c in "args", but it lost them after I using "customLaunchSetupCommands".

{ "name": "ccc", "type": "cppdbg", "request": "launch", "program": "dddd", "cwd": "${workspaceFolder}", "stopAtEntry": false, "externalConsole": false, "args": [ "a=main", "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
        },
    },

1 Answer 1

0

It works well if no customLaunchSetupCommands.

1
  • Please add further details to expand on your answer, such as working code or documentation citations.
    – Community Bot
    Sep 9, 2021 at 8:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.