Raw Log Navigation
Navigate between the Log Analysis views and raw .log files for detailed inspection.
Show in Raw Log
Right-click any frame in the Timeline or Call Tree and select Show in Log File to open the raw log file and jump to the corresponding line.
| Action | How |
|---|---|
| Show in Raw Log | Right-click frame → "Show in Log File" |
Show in Log Analysis
From a raw .log file, hover over any log line to see event metrics. Click Show in Log Analysis to navigate back to the Timeline or Call Tree with the corresponding frame selected.
Code Folding
Raw log files support code folding for matching start/end events:
METHOD_ENTRY/METHOD_EXITCODE_UNIT_STARTED/CODE_UNIT_FINISHEDDML_BEGIN/DML_ENDSOQL_EXECUTE_BEGIN/SOQL_EXECUTE_END- And more...
| Action | Shortcut |
|---|---|
| Fold region | Ctrl+Shift+[ (Win) / Cmd+Option+[ (Mac) |
| Unfold region | Ctrl+Shift+] (Win) / Cmd+Option+] (Mac) |
| Fold all | Ctrl+K Ctrl+0 (Win) / Cmd+K Cmd+0 (Mac) |
| Unfold all | Ctrl+K Ctrl+J (Win) / Cmd+K Cmd+J (Mac) |
Outline, Breadcrumbs and Sticky Scroll
The log's structure shows in the Outline view and the editor breadcrumbs. As you scroll, Sticky Scroll pins the methods and code units that contain the top line.
Syntax Highlighting
VS Code recognizes Apex debug log files and highlights their syntax.
Total Duration
The first line of the log shows the total execution time of the log.
Line Decorations
When your cursor is on a log line, duration information appears as ghost text at the end of the line:
- Total time - Time spent in the event and its children
- Self time - Time directly spent in the event (shown in parentheses when different from total)
Example: 1.23s (self: 45ms)
Hover Details
Hover near the ghost text to see detailed metrics:
- Event timing and duration
- SOQL/DML counts and row counts
- Exception counts
Click Show in Log Analysis in the hover to navigate to the Timeline or Call Tree.