Skip to content

Is cwd configuration field working? #1923

Answered by cirelli94
cirelli94 asked this question in Help
Discussion options

You must be logged in to vote

My launch.json is:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch Package",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${workspaceFolder}",
            "cwd": "${workspaceFolder}"
        }
    ]
}

I enabled the logging and I understood my problem.

I'm retrieving the executable base directory programmatically, not the cwd, so I had to change, in launch.json the value of:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cirelli94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants