Debugging in Salesforce, whether Apex, Flows or Lightning components can be time consuming. Salesforce has recently introduced a new debugging tool called Error Console which centralizes errors in one place, making it easier to identify, inspect, and resolve issues.
⚠️ Note: This feature is currently in preview. Some features may remain in beta, pilot, or developer preview until Salesforce announces general availability.
Functionality of the Error Console
The Error Console captures and displays both non-fatal and fatal errors associated with Lightning components and pages:
- Non-Fatal Error Capture: Non-disruptive errors are recorded silently, allowing users to continue working without modal interruptions.
- Fatal Error Logging: Errors that require user acknowledgment are logged in the console for later inspection.
- Centralized Viewing: Lightning component and page errors are aggregated in a single interface for efficient review.
⚠️ Note: Currently, the console’s scope is limited to Lightning Experience pages and components.
Main Benefits & Features
The Error Console provides several advantages for Salesforce admins and developers:
- Centralized Error Management: Aggregate all Lightning component and page errors in one interface.
- Workflow Continuity: Non-fatal errors do not interrupt user tasks.
- Error Persistence: Fatal errors are logged for later inspection, ensuring critical issues are not lost.
These features help improve productivity and accelerate troubleshooting within Salesforce Lightning environments.
Limitations and Considerations
- The feature is in preview mode only. General availability is not guaranteed.
- It applies only to Lightning Experience components and pages.
- For Apex and Flow errors, continue using Debug Logs.
How to Enable the Error Console
- Go to Setup → User Interface → Advanced Settings.
- Enable Use Error Console for error reporting in Lightning Experience.
- Save.
Top comments (0)