vscode Golang debugging launch.json configuration

Viewed 298

Trying to use vscode debugger to debug my go code.
vscode runs all the .go files in the same dir using the following launch.json config file:

        {
            "name": "Test",
            "type": "go",
            "request": "launch",
            "mode": "test",
            "program": "${relativeFileDirname}",
        }     

Obviously, I tried to change "program": "${relativeFileDirname}", -> "program": "${file}", but it's not working.
In addition, is there a way I can run ut and not the whole file (or in this case the whole dir)?

0 Answers
Related