Error Console - The new salesforce debugging tool
Source: Dev.to
Debugging in Salesforce—whether Apex, Flows, or Lightning components—can be time‑consuming. Salesforce has recently introduced a new debugging tool called Error Console that centralizes errors in one place, making it easier to identify, inspect, and resolve issues.
⚠️ Note: This feature is currently in preview. Some capabilities may remain in beta, pilot, or developer preview until Salesforce announces general availability.
Why Use the Error Console?
- Centralized view: See all errors in one place, filterable by type, user, or time.
- Non‑disruptive error capture: Non‑fatal errors are collected without interrupting your work; fatal errors still appear but are also logged.
- Detailed insights: Full stack traces, affected components, and links to documentation help you fix issues faster.
- Integration: Works alongside Debug Logs, VS Code, and other Salesforce tools.
Key Features
- Centralized Error View: All errors, including Apex and Flows, are displayed together.
- Detailed Error Insights: Inspect full stack traces and affected components quickly.
- Actionable Suggestions: Some errors include recommended fixes or documentation links.
- Non‑Fatal Errors Collection: Capture page and component errors without interrupting your workflow.
- Integration with Dev Tools: Works with Debug Logs, VS Code, and provides quick navigation to components or classes.
How to Enable the Error Console
For Lightning page & component errors
- Go to Setup → User Interface → Advanced Settings.
- Enable Use Error Console for error reporting in Lightning Experience.
- Click Save.