1

I am trying to set up breakpoint and debug my code in Apex, but for some reason I get the following error when running the debugger:

enter image description here

My lunch.json is as following:

enter image description here

  1. I am using Scratch ORG and my user permissions are as System Administrator.
  2. I have enabled the debugger mode in Salesforce Scratch ORG.
  3. I have the Salesforce extension package installed in VS Code.

Thank you in advance I will appreciate all help :)

enter image description here

3
  • Which edition is your salesforce org? Apex Debuggers sessions aren’t available in Trial and Developer Edition orgs. See more here Jan 9 at 12:48
  • 1
    Thank you for your answer it was really helpful. It turns out that my org is "Developer edition org". What can I do to get the debugger since I need it to debug some problems? Sorry for the trivial questions but I am new to all of this. Thank you :) Jan 9 at 13:17
  • @Swetha also I don't need debugger sessions I need to use debugger in VS Code to debug my code and set breakpoints. Jan 9 at 13:26

1 Answer 1

0

As per the doc,

  • Performance Edition and Unlimited Edition orgs include one Apex Debugger session.
  • Apex Debuggers sessions aren’t available in Trial and Developer Edition orgs.
  • You can purchase Apex Debugger sessions for Enterprise Edition orgs.

As you mentioned in the comments that you are using Developer edition org, you are seeing this error. You might want to log an Idea on IdeaExchange to have this functionality for developer edition orgs.

Recommend checking Apex Replay Debugger

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .