I use goland(same as webstorm/intellij etc) IDE and in debug configuration there is a place when you can configure working directory
Now I try to work with VSCODE and I dont find this configuration , after a bit research I find the following json which should handle this but dont find the right place for working directory
e.g. this is my working directory
/Users/i022226/go/src/myapp
"configurations": [{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}"
},
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}"
},
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"port": 2345,
"host": "127.0.0.1",
"program": "${fileDirname}",
"env": {},
"args": [],
"showLog": true
}
In the launch.json
there is add configuration button and when I type cwd
I dont get any entry, any idea ?
In this post the cwd
is under the option
but I dont find the option
https://github.com/Microsoft/vscode/issues/856
launch.json
file...there you should be able to set thecwd
property...(cwd
stands forcurrent working directory
)cwd
there, any idea?>]