32 votes
Accepted

How do I debug my lightning component?

General Tools and settings: use Chrome + built in Dev Tools + Lightning Component Inspector be sure debug mode is enabled in your org (Setup: Lightning Components) be sure caching is disabled in your ...
Christian Menzinger's user avatar
27 votes
Accepted

Dev Console jumpy on mouse scroll

Go to chrome://flags/#enable-scroll-anchoring the highlighted option is Scroll Anchoring disable it. Now you will see the message "Your changes will take effect the next time you relaunch Google ...
26 votes
Accepted

Not showing Test code coverage on developer console

Go to the 'Apex Test Execution'and in option select list deselect the 'Store Only Aggregated Code Coverage' checkbox.
Priyanka Gaikwad's user avatar
18 votes
Accepted

Developer Console can SELECT or COUNT() more than 50.000 records. Why not Apex?

Apex uses more resources than a simple API call, such as extra memory, CPU time, etc, so there's additional limits in place. The Developer Console, contrariwise, uses the API, which is just a server-...
sfdcfox's user avatar
  • 477k
18 votes
Accepted

Status 500, Internal server error when calling Apex from LWC

You are suppose to call the method like myCoolFunction({myParam:'param'}).then(result=>{ console.log(JSON.stringify(result)); }).catch(error=>{ console.log(...
User6670's user avatar
  • 2,976
17 votes
Accepted

What permission you need to have Developer Console work?

To use the Developer Console at all, you need the View All Data permission. To run queries, you need to have the API Enabled permission. To modify classes and triggers or run anonymous code, you ...
sfdcfox's user avatar
  • 477k
16 votes
Accepted

Developer Console suddenly truncating System.Debug output

Sounds like they added something to the Dev console to truncate long lines in spring 19 (On March 20, 2019 according to the Release Note changes). Developer Console: String Values in Debug Logs Are ...
Daniel Ballinger's user avatar
15 votes

Developer Console is not loading

Everytime my Dev Console hangs while loading I do the following: copy the url from the Dev Console window open new tab in browser's main window paste URL there Hope that works also for you. UPDATE: ...
Wookie88's user avatar
  • 713
14 votes

Maximum log level exceeded in Developer Console

I believe I saw the fix to this on SFSE, but can't seem to find it now. When having this issue, run this query in your Query Editor: SELECT Id FROM ApexLog Then simply delete all rows.
Adrian Larson's user avatar
  • 149k
14 votes
Accepted

Maximum log level exceeded in Developer Console

The short term solution is to keep playing whack-a-mole~ApexLog as Adrian has suggested. Longer term, the problem comes back to the Summer'18 update Store Larger Debug Logs with Changed Log Limits: ...
Daniel Ballinger's user avatar
13 votes

Dev Console jumpy on mouse scroll

There is a Known Issue for this - Developer Console jumping when using mouse scroll Summary When working in any piece of code in the Developer Console (apex class, lightning component, trigger ...
Daniel Ballinger's user avatar
13 votes
Accepted

Developer Console, Execute Anonymous - HTTP CODE[414]

The Developer Console is using the REST version of the Tooling API to perform the execute anonymous call. The length issue is a restriction of how the call encodes the apex into the URL. /...
Daniel Ballinger's user avatar
12 votes
Accepted

Is Developer Console going to be deprecated?

Update from the June in the year 2020. At TrailheaDX this year Salesforce announced the Code Builder pilot - Introducing Salesforce Code Builder. Combine that with the Salesforce Dev Podcast Episode ...
Daniel Ballinger's user avatar
12 votes
Accepted

What is the purpose of Apex Class Trace flags?

Class and trigger trace flags override other logging levels, including logging levels set by user trace flags, but they don’t cause logging to occur. As you quoted, simply setting a class trace flag ...
Kris Goncalves's user avatar
11 votes
Accepted

Unable to open developer console

I had the very same problems on Sandboxes. I have opened Salesforce ticket and they referred me again to this SSE post. And also to a similar SSE post. Jermaine's answer to that post helped for me. ...
Patlatus's user avatar
  • 15.8k
11 votes
Accepted

How to run an asynchronous job in developer console?

I suspect you won't be able to get true asynchronous anonymous code working. The problem is that your anonymous Apex only exists for the transaction it was created in. By the time the asynchronous ...
Daniel Ballinger's user avatar
10 votes

Stuck saving code

After many wasted hours, I found an unexplainable ritualistic solution. It was mentioned as a small comment on another question. The ritual is as follows: Cancel the endless 'saving' operation in ...
Gabriel C's user avatar
  • 451
9 votes
Accepted

Why does the Developer Console show different extensions like "apxc" and "apxt"?

I suspect the apxc extension for Apex classes and apxt for triggers is specific to the Developer Console. .cls and .trigger are the extensions that the Metadata API expects. The file suffix is .cls ...
Daniel Ballinger's user avatar
8 votes

Not showing Test code coverage on developer console

It appears that in latest Winter 2016 upgrade a bug was introduced where code coverage line highlights are missing from the Salesforce Developer Console You can get them back by selecting the 'Test > ...
Daniel Sokolowski's user avatar
8 votes

Developer Console : Failed to create createContainerMember for containerId

Try going to the the Progress Tab in the Developer Console and click on Cancel all deployments. This worked for me. Failed to create deployment: This container has a save in progress with ...
guppster01's user avatar
8 votes

Salesforce Developer Console - Getting a stack trace easily

@NSjonas answer is good. I thought I'd add some more options. System.debug It's not ideal, as you need to modify the code to use it. Try something like: System.debug(LoggingLevel.Error, new ...
Daniel Ballinger's user avatar
8 votes

What are the shortcut keys that uses in salesforce developer console for fast coding

All shortcuts are listed in a dialog popup; It appears when you press CTRL + SHIFT + ? or click Help -> Shortcut Keys in developer console. Here is the screenshot on how it looks like- Note: It is ...
Raul's user avatar
  • 18.7k
8 votes
Accepted

Does the SOQL Query Plan tool always do a table scan because of IsDeleted?

It only uses the lowest cost plan. Anything below that is irrelevant and can be safely ignored. So since your Index query has a Cost of 0.00001, that's what the Query Optimizer will use at run time. ...
Adrian Larson's user avatar
  • 149k
8 votes
Accepted

Where is the Lightning tab in the developer console?

Wrong Developer Console. While viewing the app or in LEX, press F12 to bring up the browser's Developer Console. It'll be far off on the right, you might need to click the >> arrow to see it.
sfdcfox's user avatar
  • 477k
8 votes
Accepted

Execute scheduled Apex class code on the Developer console

Try: new examExpiryAlert().execute(null); context doesn't matter.
Non Atomic Games's user avatar
7 votes
Accepted

Test Class Showing 100% Coverage but APEX Class Is Showing Coverage: None

I found out what the issue was. My Sandbox APEX Test Execution Options had 'Store Only Aggregated Code Coverage' activated. This was not allowing my drop down to view all of the tests. Deactivated and ...
Olivia's user avatar
  • 3,391
7 votes

Salesforce Developer Console - Getting a stack trace easily

If you go to set log panels and select "Execution Stack" and "Execution Log", it should bring up a stack trace panel next to the standard log panel. Clicking any line in the Log Panel will load up the ...
NSjonas's user avatar
  • 10k
7 votes
Accepted

Declare Matrix-like variable in apex with NXN dimensions

You can create a 2-dimensional list by using a List<List<Object>>. Entries should then be retrievable with a two bracket syntax, e.g.: List<List<integer>> doubleList = new ...
IllusiveBrian's user avatar
7 votes
Accepted

How to avoid overwriting changes by others while using Force.com IDE?

The problem is that there's no real guaranteed way to prevent overwrites, although the Force.com IDE does try to prevent this by performing a synchronization first. The problem here is that ...
sfdcfox's user avatar
  • 477k
7 votes
Accepted

Moved Anonymous window above Dev Console Header, Now cannot reach movement handlebars

All the Developer Console settings are stored in the IDEWorkspace records, including the positioning of any windows. So if you ever get into an irrecoverable issue with the dev console just delete ...
Daniel Ballinger's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible