How to pass command-line arguments in debug mode in VSCode with golang

list all params, for example,
command is:

"hello.exe -in InfoEntity.java -out aa.out"

the debug config is:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${fileDirname}",
            "env": {},
            "args": ["-in", "InfoEntity.java", "-out", "aa.out"]
        }
    ]
}

Leave a Comment