Skip to content

${workspaceFolder} as source pathMappings in launch.json is no longer replaced #1004

Open
@neubreed

Description

@neubreed

Using Xdebug extension in a remote SSH server, the following used to map properly

"pathMappings": {
    "${workspaceFolder}": "${workspaceFolder}"
},
[Step Debug] Breakpoint file name does not exist: 
 /home/undiscovered.stg/${workspaceFolder}/src/Controller/PlatformController.php (No such file or directory)

Now the ${workspaceFolder} variable is not replaced in the source. The home directory of the server is added to the front of what's placed in the source. eg. if I change it to the following:

"pathMappings": {
    "/home/undiscovered.stg/public": "${workspaceFolder}"
}

This is the mapping:

/home/undiscovered.stg//home/undiscovered.stg/public/src/Controller/PlatformController.php

This happened immediately after updating to VS Code 1.99.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions