forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
954 stars 406 forks source link

Unable to debug lightning-language-server extensions. #3777

Closed dbreese closed 2 years ago

dbreese commented 2 years ago

Summary

Checked out and followed directions to build and link both https://github.com/forcedotcom/lightning-language-server.git and https://github.com/forcedotcom/salesforcedx-vscode.

After building successfully and launching the app with extension, I can't set any breakpoints - any breakpoints I add are shown as “Unbound breakpoint” in VSCode as in the following image.

Screen Shot 2022-01-12 at 12 10 20 PM

Steps To Reproduce:

  1. Checkout and follow directions in README.md here https://github.com/forcedotcom/lightning-language-server.git
  2. Attempt to launch the app and extensions.
  3. Attempt to set a breakpoint in any code in the lwc-language-server package code.

Expected result

Breakpoints should work.

Actual result

"Unbound breakpoint" is shown in VSCode, so it is not possible to use debugger and have to resort to console.logs().

Additional information

uip-robot-zz commented 2 years ago

This issue has been linked to a new work item: W-10537405

randi274 commented 2 years ago

lightning-language-server is now debuggable!