Skip to main content

Debug Logs & Analyzer

The Debug Logs page lets you capture Salesforce debug logs, read them, and analyze them to understand exactly what happened in a transaction.

Viewing logs from your org​

When you open the page with an org selected, Jetstream subscribes you to debug logs and periodically checks Salesforce for new logs. Click the refresh icon to check right away, or the pause icon to stop checking.

Use the Show logs from picker to see My Logs, logs from All Users, or logs from one specific user.

Select a log in the list to open it on the right. Logs you have already opened are marked with an eye icon. Click the expand icon in the Log Results header to hide the log list and give the log the full width of the page, and drag the divider to resize the two panes (your sizes are remembered).

Debug logs page

Analyzing a log​

Every log opens as the raw text first, with a filter and a Limit to User Debug option. Choose Analyze to break the log down into:

  • Summary: duration, CPU time, SOQL, DML, heap and callouts against their governor limits, plus alerts for exceptions, truncated logs and log levels that hide detail.
  • Overview: exceptions and fatal errors, the full governor limit breakdown (per namespace for managed packages), and the slowest methods, top queries and automation at a glance.
  • Call Tree: the execution tree with total and self time, SOQL and DML counts for every frame. Switch to Top Methods to see the methods that used the most time across the whole transaction.
  • SOQL & DML: every query and DML statement. Queries are grouped so a query that runs many times (often a query inside a loop) is flagged as a Duplicate, and the query plan cost is shown when the log includes it.
  • Automation: the triggers, flows, validation rules (with PASS or FAIL) and workflow rules that ran, in the order they ran.
  • User Debug: every System.debug() statement, searchable and filterable by level.

Click the arrow icon on any row to jump to that exact line in the raw log.

Analysis happens entirely in your browser, and once you choose Analyze, other logs you open also open in analysis mode until you switch back to Raw Log.

Debug log analyzer overview Debug log analyzer call tree
tip

The analyzer can only show what the log recorded. For the most useful analysis, capture logs with a debug level that sets Apex Code to FINE, Database to FINEST and Workflow to FINE. The Jetstream Analyzer (Recommended) debug level preset does this for you.

Opening a log file​

You can analyze a log from anywhere, such as one a colleague sent you or one downloaded from Setup, even without an org selected. Drop a .log or .txt file anywhere on the page, or click Open Log to choose a file or paste the contents of a log.

Logs you open this way appear at the top of the list with a Local badge. They are never uploaded to Jetstream or Salesforce, and you can remove them from the list with the remove icon.

Trace flags and debug levels​

Click Trace Flags to manage which users Salesforce captures logs for:

  • Add a trace flag for yourself, the Automated Process user (for platform event triggers and other background automation), or any active user in the org.
  • Choose a duration from 30 minutes up to 24 hours, the most Salesforce allows. Renew, edit or delete existing trace flags at any time.
  • Create, edit, clone and delete debug levels, starting from a preset such as Jetstream Analyzer (Recommended).

When you start tracing another user, the log list switches to show logs from all users so their logs appear as they come in.

Anonymous Apex and the Apex Test Runner use the same analyzer, so you can choose Analyze on the log from any Apex you execute or any test you run.