question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exceeded your licensed number of debugging sessions, scratch org

See original GitHub issue

Summary

Unable to interactively debug from a Scratch organization

Steps To Reproduce:

  1. Create scratch org using configuration file with “DebugApex” in features and DevHub org with at least one debug license available.
  2. Set up interactive debugging according to Salesfore Interactive Debugger (https://forcedotcom.github.io/salesforcedx-vscode/articles/apex/interactive-debugger).
  3. Attempt to start an interactive debugging session in Visual Studio Code.
  4. 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

image

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:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Christelle-Josephcommented, Jun 4, 2020

In case someone run into this:

go to setup --> Apex debuger --> kill session

or

SFDX: Stop Apex Debugger Session

0reactions
ApraChriscommented, Nov 13, 2020

I’ve just run into this as well.

This is from my Dev Hub:

image

In my scratch org where I’ve set up debugging it looks like this:

image

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found