code-d icon indicating copy to clipboard operation
code-d copied to clipboard

Code-D does not expand Dub variables in `launch.json`

Open ahmetsait opened this issue 2 years ago • 0 comments

My dub.json contains "targetPath": "bin/$BUILD_TYPE-$PLATFORM-$ARCH". Trying to simply launch debugger in VS Code shows the following error:

2023-07-06 08-57-13 Visual Studio Code

launch.json contents:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "code-d",
            "request": "launch",
            "dubBuild": true,
            "name": "Build & Debug DUB project",
            "cwd": "${command:dubWorkingDirectory}",
            "program": "${command:dubTarget}",
            "args": []
        }
    ]
}

ahmetsait avatar Jul 06 '23 06:07 ahmetsait