Skip to content

WSL node debugging does not handle launch.json program paths with slashs correctly #35249

Closed
@mjbvz

Description

@mjbvz

#34996

  • VSCode Version: Code - Insiders 1.17.0-insider (e059563, 2017-09-27T09:56:06.042Z)
  • OS Version: Windows_NT x64 10.0.17004
  • Extensions:

Steps to Reproduce:

  1. For a workspace:
package.json
sub/
    index.js
  1. Create a launch.json:
{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "index",
            "useWSL": "true",
            "protocol": "legacy",
            "cwd": "${workspaceFolder}",
            "program": "${workspaceRoot}\\sub\\index.js"
        }
    ]
}
  1. Launch the program

Bug

Error: Cannot find module '/mnt/c/source/vscode-smoketest-express/subindex.js'

Oddly the first backslash seems work

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions