All docs pages (49)
Debug Logs
View, filter, and analyze Salesforce debug logs without leaving your browser.
Updated 2026-02-15

The Debug Log viewer lists the debug logs in your org, opens them in a searchable viewer, and parses them into a structured timeline. You don't have to download files and search them by hand.
Features
Log List
List the debug logs in your org, with time, action, user, request, status, duration and size:
- Filter by user Id and date range
- Filter by status (success or error), minimum duration and minimum size
- Filter by operation text (for example Batch or Future)
- Set how many logs to load
- Sort by time, action, request, status, duration or size
- Search inside the body of every listed log
- Download or delete one log, or delete the selected logs
Log Viewer
Click any log to open it in the viewer:
- Error lines in red, warnings in amber, debug and limit lines marked
- Search, with optional regular expressions
- Line filters that keep only USER_DEBUG, exceptions, SOQL, DML, limits, callouts, flow or validation rule lines
- Structured view: a timeline of SOQL, DML, debug lines, limits and automation events that you can filter by type, with the time each query and DML operation took
SOQL Analysis
The structured view picks out the SOQL queries in the log:
- Total queries and total query time for the log
- Row counts for each query
- Limit usage bars from the log's limit lines: amber at 70%, red at 90%
- The SOQL text, with buttons to copy it or run it in the SOQL Runner
Error Highlighting
- Lines with
FATAL_ERRORor|ERROR|show in red - The Exceptions, DML and Validation Rules line filters keep just those lines
- The structured view warns when a governor limit is at 80% or more
Download
Download any log as a .log file for sharing or archiving.
Setting Up Debug Logs
To capture a debug log:
- Go to Setup > Debug Logs in Salesforce
- Add a traced entity (user or automated process)
- Set your log level
- Reproduce the issue
- Open SFDC Police → Debug Logs to view the result
Or add a trace flag in SFDC Police: in Debug Logs, open the Trace Flags tab and fill in the New Trace Flag form (a user and a duration from 30 minutes to 24 hours), then click Create Trace Flag, or turn tracing on from a user in the floating panel.

1 The Trace Flags tab. 2 User ID. 3 Debug Level. 4 Duration. 5 The Create Trace Flag button.