Skip to content

Error message when launching Apex Interactive Debugger: No username provided and no default username found in project config or state #6558

@sf-blilley

Description

@sf-blilley

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:

  1. 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.
  2. Ensure your user has the "Debug Apex" permission, licenses configured in the dev hub, active scratch org, etc.
  3. Attempt to start an interactive debugging session from VS Code. You will receive the error above.
  4. Uninstall the Apex Interactive Debugger extension and install version 64.11.1 from here.
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions