Newer Version Available

This content describes an older version of this product. View Latest

Debugging

Use your browser’s console and JavaScript error messages generated within Salesforce to debug Lightning pages built with the Lightning Console JavaScript API.

Many of the methods in the Salesforce Console Integration Toolkit are asynchronous and return their results using a callback method. We recommend that you refer to the documentation for each method to understand the information given in each response.

To print messages to your browser’s console, use console.log() in your component controller code.

Salesforce also displays JavaScript errors at runtime, which provide the stack trace when there’s a bug.