Summary
The last version of the Apex Interactive debugger that works for me is 64.11.1. At some point after that, it debugger started throwing the error:
Error: No username provided and no default username found in project config or state.
Downgrading to 64.11.1 solved my problem.
Note: Debugging was working well for me until the debugger was upgraded. I am working with scratch orgs on a 258 instance .
Steps To Reproduce:
- Ensure you are on a version of the Apex Interactive Debugger higher than 64.11.1. I confirmed the issue exists in 64.13.1.
- Ensure your user has the "Debug Apex" permission, licenses configured in the dev hub, active scratch org, etc.
- Attempt to start an interactive debugging session from VS Code. You will receive the error above.
- Uninstall the Apex Interactive Debugger extension and install version 64.11.1 from here.
- Attempt to start an interactive debug session again. It will work.
Expected result
Debugger will launch
Actual result
Debugger throws an error
Additional information
Feel free to attach a screenshot.
Salesforce Extension Version in VS Code: 64.13.1
Salesforce CLI Version: @salesforce/cli/2.106.6 darwin-arm64 node-v22.19.0
OS and version: Sequoia 15.7
VS Code version: 1.104.1
Most recent version of the extensions where this was working: 64.11.1