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

extensionHost can't bind breakpoints #134778

Closed
Johannes-B-stock opened this issue Oct 11, 2021 · 4 comments
Closed

extensionHost can't bind breakpoints #134778

Johannes-B-stock opened this issue Oct 11, 2021 · 4 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues

Comments

@Johannes-B-stock
Copy link

Johannes-B-stock commented Oct 11, 2021

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.60.2
  • OS Version: Windows 10 20H2

Hi vscode team,
I am developing multiple extensions and debug it by running the extensionHost like documented in the vscode docs. Unfortunately since a couple weeks ago the extension host cannot bind any breakpoints anymore. It might be since the vscode 1.60 version, but I'm not sure. I checked the issue microsoft/vscode-js-debug#1100 but the proposed help didn't work for me.

This is my launch.json configuration:

  "name": "Extension",
  "type": "extensionHost",
  "request": "launch",
  "args": [
    "--extensionDevelopmentPath=${workspaceFolder}",
    "--disable-extensions",
    "${workspaceFolder}/src/tests/sampleworkspace"
  ],
  "outFiles": ["${workspaceFolder}/**/*.js", "!**/node_modules/**"]
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Oct 11, 2021
@weinand weinand removed their assignment Oct 11, 2021
@connor4312
Copy link
Member

Please post reproduction steps

/neesdMoreInfo

@Johannes-B-stock
Copy link
Author

Hm... After a bit more research I found out that it was actually a setting in the webpack config, namely the "output.devtoolModuleFilenameTemplate". After removing it, the debugging worked again while running the extension in the extension host.
Weird thing is, I have that config since I started writing the extension and debugging always worked, just recently it stopped working.

Thanks for replying anyways...

@connor4312
Copy link
Member

Can you share what it was set to?

We made the new debugger the default in 1.60, and there may have been a slight difference in behavior.

@Johannes-B-stock
Copy link
Author

It was set to '../../[resource-path]', but I had in a sub folder, not the root folder of the repo.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues
Projects
None yet
Development

No branches or pull requests

3 participants