Skip to content

Tools

Apex debug log analyzer

Paste or drop a debug log. See what ran, how long it took, which queries repeated and how close the transaction got to the governor limits.

Apex debug log

Runs in your browser. Your log is never uploaded or stored.

What is a debug log?

Every Apex transaction can write a line-by-line trace: each trigger, method call, SOQL query, DML statement,System.debug, exception and governor-limit snapshot, stamped to the nanosecond. It is the closest thing Salesforce has to a profiler, and also one of the harder things to read at 50,000 lines.

Get one

  1. Setup → Debug Logs → New, pick a user and a debug level (FINEST on Apex Code is noisy; DEBUG is plenty).
  2. Reproduce the action in the org.
  3. Open the log and use Download, or copy the text.
  4. From a terminal: sf apex tail log --color, or sf apex get log --number 1.

What you get here

  • Totals for SOQL, DML, CPU, heap, callouts and exceptions
  • Governor-limit bars (amber from 80%)
  • A zoomable flame chart of code units, methods, queries and DML
  • Flags for SOQL or DML in loops, near-limit usage and fatal errors

No log to hand? Use Load sample log. It is synthetic.

Built with the Salesforce Lightning Design System. Not affiliated with Salesforce.

App Launcher