Exceeded your licensed number of debugging sessions, scratch org
See original GitHub issueSummary
Unable to interactively debug from a Scratch organization
Steps To Reproduce:
- Create scratch org using configuration file with “DebugApex” in features and DevHub org with at least one debug license available.
- Set up interactive debugging according to Salesfore Interactive Debugger (https://forcedotcom.github.io/salesforcedx-vscode/articles/apex/interactive-debugger).
- Attempt to start an interactive debugging session in Visual Studio Code.
- Get messages in console:
Connected to Streaming API channel /systemTopic/ApexDebuggerSystemEvent.
Connected to Streaming API channel /systemTopic/ApexDebuggerEvent.
Expected result
Debug session would have started successfully and used an available license from the DevHub organization.
Actual result
Received error message: You exceeded your licensed number of debugging sessions. Please end other sessions or purchase more.
Additional information
VS Code Version: 1.37.0
SFDX CLI Version: sfdx-cli/7.19.0-c5be43915c win32-x64 node-v10.15.3
OS and version: Windows 10 Pro, Version 1803, build 17134.472
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Apex Debugger Error - Salesforce Developer Community
You have 1 license available.". Under Apex Debugger in my scratch orgs, it says "Your org doesn't have any active Apex Debugger sessions."....
Read more >Salesforce DX Apex Debugging license issue
My scratch org states Your org doesn't have any active Apex Debugger sessions and my DevHub is a production org and states Your...
Read more >Workaround for Issue Debugging LWC in Chrome Dev Tools ...
To still debug your LWC's, you will need to first disable this feature in your scratch org. You can do this in: Session...
Read more >Salesforce Summer'22 Release Quick Summary
Enable Debug Mode for your Salesforce user account to see these improvements in source display while debugging your component code as it runs...
Read more >Object Reference for Salesforce and Lightning Platform
Represents the number of active, assigned, and purchased feature licenses in the org. This object is available in API version 52.0 and.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In case someone run into this:
go to setup --> Apex debuger --> kill session
or
SFDX: Stop Apex Debugger Session
I’ve just run into this as well.
This is from my Dev Hub:
In my scratch org where I’ve set up debugging it looks like this:
I get the exact same behavior as @deb761 mentions. Version is: sfdx-cli/7.80.0-b979aae708 win32-x64 node-v12.18.3
Let me know if you need any more info to figure this out.