Debugger
Step through Apex debug logs with breakpoints and variables, see what ran in order, and get validated AI fixes.
The Debugger turns an Apex debug log into something you can read and step through: which triggers, classes and flows ran, in what order and for how long, every SOQL query and DML statement, the value of every variable at any point of the run, and, when it failed, the exception, its stack and the variables at that moment. From a failure it can ask your AI provider for a fix, which goes through a pull request and a validation before it merges.
Pick the org at the top right. Logs with a red dot failed.
Getting a log
- Debug logging shows who has debug logging on in the org right now (including trace flags set
outside Diffbridge) and until when, with Stop to turn it off. To start, search for a user by
name or username, pick how long (15 minutes to 24 hours) and click Start logging; picking a
user who is already logged extends it. With no user picked it logs the user the org is connected
as. Logging uses Apex Code at FINEST, so variable values are recorded (Diffbridge creates a
debug level called
Diffbridge_Debuggerand a trace flag). Then reproduce the problem as that user and click Fetch logs. The button shows how many users are being logged. - Fetch logs reads the org's newest debug logs (from Setup → Debug Logs) that aren't in Diffbridge yet. Opening an org for the first time fetches them once by itself.
- Run Apex runs anonymous Apex as the connected user with logging on, and opens the run. It needs the right to deploy to the org, because anonymous Apex can change data. Format (Shift+Alt+F) re-indents the code; Tab indents, and Ctrl+Enter runs it.
- Upload opens a log from the Developer Console, VS Code or a teammate. Tick It's from the selected org so the debugger can show the source of its classes.
Logs can hold record data, so they are stored encrypted with the workspace's key. Each org keeps its newest 200 logs; logs with a fix are kept until you delete them.
Execution flow and call tree

Execution flow lists what ran, in order: triggers (with their event, such as BeforeUpdate), classes, flows, validation rules and anonymous Apex, each with how often it was entered and how long it took. Next to it, the timeline draws every frame by time and depth: triggers, methods, SOQL, DML and callouts in their own colours, and the failing path in red. Click anything to step into it.
Call tree is the same run as a tree you can fold, with the time of each node, the rows each query returned, and the line each call came from.
Stepping through a run

Step through is a debugger over the recorded run. The source of the class or trigger that is executing is shown with the lines that ran highlighted, and the current line marked.
- Step into (F11), step over (F10) and step back (Shift+F11) move one step at a time; the slider moves anywhere in the run.
- Click a line number to set a breakpoint. Since the run is recorded, Run to next breakpoint (F8) and Previous breakpoint (Shift+F8) jump between the moments that line ran, and the breakpoint list shows how many times each one was hit.
- Failure jumps to the moment the exception was thrown.
- Call stack shows the frames at the current step, and Variables the value of each local variable in every frame, plus static fields. Values that changed at this step are highlighted; records and collections expand to their JSON.
The source shown is the class's current version in the org, which can differ from the version that ran if it was deployed since. Variable values need Apex Code at FINEST: logs captured with Debug logging or Run Apex have them; others may only have the call tree.
Debug output lists every System.debug message and exception, and Limits shows the governor
limits at the end of the run (SOQL queries, DML, CPU…) and the exceptions that were caught.
Fixing with AI
Fix with AI asks your own AI provider (the key from AI assistance) for a fix. It needs AI assistance turned on for the workspace and the deploy role.
- Pick the repository and the branch the fix goes into, and the org to validate against.
- Pick what happens when the validation passes:
- Wait for approval: the fix waits until someone reviews the diff and clicks Approve & merge (or Reject). You can be notified with AI fix ready for approval under Settings → Notifications.
- Merge automatically: it merges as soon as it validates.
- Optionally add notes for the AI, such as constraints the fix must keep.
The AI is shown the run (the order things ran in, the failure and its stack, the variables at that moment and the steps before it) and the current source of the classes and triggers involved, from the branch (or from the org, when the repository doesn't have them yet), and their test classes. It proposes changed files; it may only change the classes and triggers it was shown, or add new classes.
Diffbridge then commits the change to a new branch (diffbridge/fix-…), opens a pull request on
GitHub or GitLab when the repository has a token, and validates the branch against the org: a
check-only deployment of the changed code with the related tests (Smart tests).
The fix card shows each step, the diff, the pull request and the validation.
Merging uses the same semantic merge as pipeline pull requests, and starts the CI jobs that watch the branch, so a merged fix is deployed the way any other merge is. Merging needs the right to run those CI jobs. If the validation fails, the card shows why; Try again asks the AI again, telling it what went wrong.
In demo mode, the Acme Dev Sandbox org has a lead import that fails with Too many SOQL queries:
101 because LeadRouter queries inside a loop: open it, step to the failure, and try a fix.