Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mjbvz opened this issue Sep 27, 2017 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded

Comments

@mjbvz
Copy link
Collaborator

mjbvz commented Sep 27, 2017

#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

@mjbvz mjbvz changed the title WSL node debugging does not handle backslash launch.json windows styel paths correctly WSL node debugging does not handle launch.json program paths with slashs correctly Sep 27, 2017
@mjbvz
Copy link
Collaborator Author

mjbvz commented Sep 27, 2017

Actually not, just for windows style paths. I also see this for:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "index",
            "useWSL": "true",
            "protocol": "legacy",
            "cwd": "${workspaceFolder}",
            "program": "${workspaceRoot}/sub/index.js"
        }
    ]
}

@mjbvz mjbvz added the debug Debug viewlet, configurations, breakpoints, adapter issues label Sep 27, 2017
@weinand weinand added this to the September 2017 milestone Sep 28, 2017
@weinand weinand added the bug Issue identified by VS Code Team member as probable bug label Sep 28, 2017
weinand added a commit to microsoft/vscode-node-debug that referenced this issue Sep 28, 2017
@weinand weinand closed this as completed Sep 28, 2017
@mjbvz mjbvz added the verified Verification succeeded label Sep 29, 2017
roblourens added a commit to microsoft/vscode-node-debug2 that referenced this issue Oct 11, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants