Skip to main content
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 ...
19 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
  • 3,025
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
  • 497k
16 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
  • 151k
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
  • 723
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
  • 17.3k
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
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
9 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
8 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
  • 10.2k
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.8k
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
  • 151k
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
  • 497k
8 votes
Accepted

Can't query newly created field after deploying change set (works in sandbox)

If you deployed the field but didn't deploy any profiles then the field security needs to be updated. By default when you deploy a field on its own nobody has access to view it or edit it. Check your ...
Morgan Marchese'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,471
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
  • 497k
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
7 votes

Is Developer Console going to be deprecated?

LWC is meant to be used in a "source of truth" model that includes a repository. This is because the unit tests are not uploaded/stored in Salesforce, so the entire LWC needs to be offline somewhere ...
sfdcfox's user avatar
  • 497k
6 votes

Invalid API version 0.0 preventing me from saving trigger

Its really weird to say but this actually looked like it solved itself after I opened up a case with Salesforce. They closed to case and told me I needed developer support, but it looks like the API ...
Christian's user avatar
  • 537
6 votes
Accepted

Disable Parallel Test vs. Always Run Asynchronously in Dev Console - Who wins?

I believe you're getting confused. Asynchronously has nothing to with parallelism. For the first box (Disable Parallel Testing), when checked, tests run one after another, and when unchecked, run ...
sfdcfox's user avatar
  • 497k
6 votes
Accepted

Getting FIELD_INTEGRITY_EXCEPTION with double quotes in regex

You'll want to log a bug with this; it appears that the quotes do need to be matched in Spring 17, and this behavior also does not appear in Winter 16. For now, you should be able to escape one quote ...
sfdcfox's user avatar
  • 497k

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