forcedotcom / salesforcedx-vscode

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

Unverified breakpoint in multi-package repo #5951

Open nkskaare opened 5 days ago

nkskaare commented 5 days ago

Summary

Unable to stop at breakpoints with Apex Replay Debugger in a repo with multiple packages defined in sfdx-project.json.

Steps To Reproduce:

  1. Set breakpoint for a class which is not on the default path "force-app/main/default/classes"
  2. Start debugging session
  3. See that breakpoint is greyed out

Update: Tried reproducing the issue with a simpler project structure than I have in the repo where it is failing, I am currently unable to reproduce, even though I am running in the same devcontainer environment. Any insight into how to further debug this is appreciated.

Expected result

Regular breakpoint, which debugger can be stopped at.

Actual result

Breakpoint is greyed out, saying unverified breakpoint.

Additional information

Screenshot 2024-11-19 at 14 34 46

Salesforce Extension Version in VS Code: v62.5.1

Salesforce CLI Version: @salesforce/cli/2.46.6 linux-x64 node-v18.20.4

OS and version: Ubuntu 22.04.5 LTS (Docker devcontainer)

VS Code version: 1.95.3

Most recent version of the extensions where this was working: v62.5.1 (Unsure. Tried reproducing the issue in the same type of container with a simpler project structure and it worked.)

svc-idee-bot commented 5 days ago

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

svc-idee-bot commented 5 days ago

Hello @nkskaare :wave: It looks like you didn't provide all the required basic info in your issue.

If you haven't already, please provide the following info: Salesforce Extension Version in VS Code: Salesforce CLI Version: OS and version: VS Code version: Most recent version of the extensions where this was working:

Here's an example of a set of required info that will pass the validation: Salesforce Extension Version in VS Code: 60.13.0 Salesforce CLI Version: @salesforce/cli/2.42.6 darwin-arm64 node-v18.18.2 OS and version: MacOS Sonoma 14.5 VS Code version: 1.89.1 Most recent version of the extensions where this was working: 60.11.0

A few more things to check:

Thank you!

nkskaare commented 5 days ago

Developer tools logs no error when trying to set the breakpoint, but the following error message is displayed when debugging session is finished.

Screenshot 2024-11-19 at 15 34 13