Skip to content

debugger in WSL2 is not working, but work fine in windows #1661

Closed

Description

@eveforest

Describe the bug
using js debugger work fine in window, but in wsl2 project the reference named '/mnt/c/...' seems disconnected with 'localhost:xx'.
The src dir below them is also dispear and any breakpoint is not working.
2023-04-16_124759

And work fine in window like below:
2023-04-16_130421

my configuration json:
{
"type": "chrome",
"request": "launch",
"name": "wsl chrome",
"url": "http://localhost:9000",
"webRoot": "${workspaceFolder}"
}

VS Code Version:
Version: 1.77.3 (user setup)
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
Date: 2023-04-12T09:16:02.548Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Windows_NT x64 10.0.19044
Sandboxed: No

using lasted JavaScript Debugger (Nightly)

Activity

  1. added
    bug
    on Apr 16, 2023
  2. connor4312 commented on Apr 17, 2023

    @connor4312
    Member

    Please collect logs using the the instructions in the issue template.

  3. added
    info-needed
    on Apr 17, 2023
  4. eveforest commented on Apr 17, 2023

    @eveforest
    Author

    hi , Connor Peet (@connor4312) , the log in debugger console like below:

    Note: Using the "preview" debug extension
    Verbose logs are written to:
    /home/even/.vscode-server/data/logs/20230417T085311/exthost1/ms-vscode.js-debug-nightly/vscode-debugadapter-b3bcae0c.json.gz
    [vite] connecting...
    client.ts:19
    [vite] connected.
    

    and i had upload the vscode-debugadapter-b3bcae0c.json.gz to https://microsoft.github.io/vscode-pwa-analyzer/index.html
    is these help?

  5. connor4312 commented on Apr 17, 2023

    @connor4312
    Member

    Please share that file by dragging and dropping it into the comment box on Github. The website you linked is just a local viewer and doesn't share anything with us.

  6. eveforest commented on Apr 17, 2023

    @eveforest
    Author
  7. connor4312 commented on Apr 17, 2023

    @connor4312
    Member

    It doesn't look like you had any breakpoints set in that session. Can you try setting some so I can see where the issue is?

  8. eveforest commented on Apr 17, 2023

    @eveforest
    Author

    Connor Peet (@connor4312) when i launch debugger and set some breakpoints before i run command with 'pnpm run dev', it stop on every step, seems all step get breakpoints.
    vscode-debugadapter-ee5c9865.json.gz

  9. connor4312 commented on Apr 17, 2023

    @connor4312
    Member

    You mentioned

    any breakpoint is not working

    Is this no longer the case? I'm not clear on what the issue is.

  10. eveforest commented on Apr 18, 2023

    @eveforest
    Author

    hi Connor Peet (@connor4312), thx for your patience, the more detail situation is:

    1. first make a breakpoint , and then launch debugger and npm run pro, it will cause every steps stop, even though i just only make one breakpoint. this situation log is:
      vscode-debugadapter-ee5c9865.json.gz.
    2. if i launch debugger and npm run pro first, then make a breakpoint, there is nothing happen. Any breakpoint is not working in vscode, whenever i make breakpoints from vscode or the chrome debug mode sources(F12). This situation log is:
      vscode-debugadapter-b3bcae0c.json.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginfo-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions