Docs/Studio/Trace Debugger

Trace Debugger Interface

Master the Trace Debugger to analyze agent execution step-by-step with complete visual context.

Overview

The Trace Debugger is Studio's primary interface for inspecting agent runs. It provides a cinematic, step-by-step playback of your agent's execution with:

[Image Placeholder: Full Trace Debugger interface]

Interface Layout

The Trace Debugger uses a 65/35 split layout optimized for analyzing visual behavior:

Header Bar

[Image Placeholder: Header bar with goal, run ID, and controls]

Located at the top, the header shows:

Timeline Scrubber

[Image Placeholder: Timeline with multiple steps, some green, some red]

The timeline shows all steps in the execution:

Status Colors

Interaction

Screenshot Viewer (65%)

[Image Placeholder: Large screenshot panel with overlays]

The left panel displays the webpage screenshot:

Overlay Controls

Three toggle buttons at the top-right corner:

[Image Placeholder: Three overlay toggle buttons]

Screenshot Features

Detail Panel (35%)

[Image Placeholder: Detail panel showing step information]

The right panel shows detailed information about the current step. See the Detail Panel documentation for complete details.

Quick summary:

Video Controls

[Image Placeholder: Bottom control bar with play/pause and speed controls]

Located at the bottom:

Visualization Modes

Studio provides three powerful visualization overlays to help you understand agent behavior.

Bounding Box Overlay

Shows element interactions with visual rectangles:

[Image Placeholder: Screenshot with colored bounding boxes around elements]

What It Shows

Color Coding

When to Use

Example Use Case

Your agent is supposed to click "Add to Cart" but keeps clicking "Save for Later":

  1. Enable bounding box overlay
  2. Navigate to the step where the click happens
  3. See which button has the green box
  4. Check if the wrong button was selected
  5. Review why the agent chose that element (check Detail Panel)

Diff Overlay

Highlights visual changes between consecutive steps:

[Image Placeholder: Diff overlay showing changes in different colors]

What It Shows

Color Coding

When to Use

Example Use Case

Your agent types in a search box but doesn't see results:

  1. Enable diff overlay
  2. Navigate to the step after typing
  3. Look for green areas (new content)
  4. If no green areas appear, the search didn't trigger results
  5. Investigate why (check if Enter was pressed, if there's a delay, etc.)

Heatmap Overlay

Visualizes element importance scores:

[Image Placeholder: Heatmap overlay with color gradient showing element priorities]

What It Shows

Color Gradient

When to Use

Example Use Case

Your agent keeps clicking the wrong "Search" button (there are multiple on the page):

  1. Enable heatmap overlay
  2. See which search button has the highest importance score
  3. Compare with the button you want it to click
  4. Adjust your semantic query to better target the correct element

Combining Overlays

You can enable multiple overlays simultaneously:

Screenshot Prefetching

Studio optimizes performance by prefetching screenshots in the background.

[Image Placeholder: Screenshot prefetch progress indicator]

How It Works

When you open a trace:

  1. Index loads first (fast, ~100KB)
  2. Screenshots begin downloading in background
  3. Progress indicator shows "Loading screenshots X/Y"
  4. Playback is smooth once screenshots are cached

Benefits

Progress Indicator

Located in the top-right of the header:

Fast Mode vs Full Trace

Studio uses intelligent loading to optimize performance:

Fast Mode (Index Only)

[Image Placeholder: "Fast mode (index only)" badge]

What loads:

When it's used:

Full Trace Loaded

[Image Placeholder: "Full trace loaded" badge]

What loads:

When it's used:

Automatic Loading

Studio automatically switches from Fast Mode to Full Trace when:

PDF Export

Export traces as PDF reports for documentation, sharing, or compliance.

[Image Placeholder: PDF export dialog with options]

Opening Export Dialog

Click the Export PDF button in the header (top-right corner).

Export Options

[Image Placeholder: Export options checkboxes]

Include Screenshots

Recommendation: Enable for visual debugging, disable for quick reports.

Include LLM Responses

Recommendation: Enable for deep analysis, disable for executive summaries.

Include Verification Details

Recommendation: Enable for debugging, disable for high-level overviews.

PDF Structure

The exported PDF contains:

Cover Page

Executive Summary

Step-by-Step Report

For each step:

  1. Step Header - Step number, status, goal
  2. Screenshot (if enabled) - Full-page screenshot
  3. Action Details - What the agent did
  4. LLM Response (if enabled) - Raw LLM output
  5. Execution Results - Success/failure, duration
  6. Verification (if enabled) - Detailed signals

Use Cases

File Size Guidance

Typical export sizes (20-step trace):

Keyboard Shortcuts

Speed up navigation with keyboard shortcuts:

| Shortcut | Action | |----------|--------| | Space | Play/Pause auto-playback | | (Left Arrow) | Previous step | | (Right Arrow) | Next step | | Home | Jump to first step | | End | Jump to last step | | B | Toggle Bounding Box overlay | | D | Toggle Diff overlay | | H | Toggle Heatmap overlay | | E | Open Export dialog | | Esc | Close Export dialog |

Pro Tip: Use Space + arrow keys for rapid step-by-step analysis.

Performance Tips

For Large Traces (100+ steps)

For Slow Connections

Browser Compatibility

Recommended browsers:

Next Steps