Documentation

Capture a bug. Hand it to AI.

Install the extension, capture your first bug in under a minute, and give the report to your coding agent. Everything runs on your machine.

Install the extension

Free, no account. One extension for Chrome and Firefox.

Chrome, Edge, Brave
Chrome Web Store
Opera
Chrome Web Store, after Opera's “Install Chrome Extensions” add-on
Firefox 128 and later
Firefox Add-ons
Safari
Not supported. Use the npm SDK in your app instead.

After installing, pin TraceBug to the toolbar so it's one click away. AltB takes an instant screenshot ticket on any tab; change it at chrome://extensions/shortcuts in Chrome or Manage Extension Shortcuts in Firefox's add-ons page.

Capture your first bug

  1. 1Open the page with the bug, click the TraceBug icon and choose Capture Bug. No screen-share dialog opens.
  2. 2Reproduce the bug: click, type, navigate. TraceBug records your clicks, console, network and a replay of the page, across page loads.
  3. 3Click Stop in the floating bar. The ticket opens with a title, summary, repro steps and a root-cause hint already filled in.
  4. 4Click Export replay (.html) and send the file, or Fix with AI to copy a ready prompt for your agent.

Need pixels too? Open the popup's capture options and turn on Events + Video. For a single frame, use Screenshot or press AltB; it opens the ticket with a fresh screenshot attached.

What's in a report

Every report is one file with all of this, filled in for you:

Repro steps

Numbered steps generated from your clicks, typing and navigation.

Console

Errors with stack traces, plus the warnings and logs around them.

Network

Every request with method, status and timing; failed responses keep their body.

Replay

An interactive DOM replay of the page. Optional screen video.

Screenshots

Visible area or a cropped region, with drawings and blur.

Environment

Browser, OS, viewport and device.

Root-cause hint

Which action came before the first failure, and what failed.

AI tab

A copy-ready prompt so whoever opens the file can hand it to an agent.

Audit a page

Site Audit checks the page you are on and tells you what to fix. It runs in your browser and never clicks, types or uploads anything. It reads the site's robots.txt and sitemap.xml, and the full scans load the page once more, hidden, at phone width.

  1. 1Open the page and choose Audit this page, the first card in the TraceBug popup. The arrow next to it picks one scan: Auto Review, Accessibility Audit, or Performance & SEO.
  2. 2The audit panel opens beside the page with a 0–100 score per check. Drag it by its header, or drop it at either edge.
  3. 3Each finding names the element, the WCAG rule, what was found and what is required, and how to fix it. Locate scrolls to the element.
  4. 4Click Fix with AI: it downloads the audit and copies one line for your coding agent, which reads it over MCP and asks before changing anything. No MCP? Use Copy for AI. Re-scan after the fix to see what changed.
Accessibility
axe-core WCAG 2.0–2.2 A/AA, label-in-name, and keyboard checks (focus outline, focus hidden by a sticky header). Contrast findings suggest a passing colour.
Layout
Overflow, off-screen elements, controls covering controls, clipped text, broken images, images without dimensions.
Phone width
The same layout checks at 390px, plus scrolling boxes a keyboard can't reach.
Performance
LCP (which element, and why), FCP, TTFB, main-thread blocking, CLS, render-blocking files, heavy and oversized images.
SEO
Title, description, canonical, h1, viewport, noindex, Open Graph, JSON-LD, robots.txt and sitemap.
Errors
Console errors, failed requests, mixed content, rage and dead clicks on this page.

Scores: 90–100 good, 50–89 fair, below 50 poor. Results the automated checks can't decide are listed under Needs a person to check and don't lower the score. Site Audit guide

Share or file it

Export replay (.html)
One self-contained file: replay, console, network, steps. Opens offline in any browser and is what the MCP server reads.
Fix with AI
Copies a prompt that points your agent at the report.
GitHub, Linear, Slack
Files a real issue or message with your own token, sent straight from your browser. Without a token it opens a prefilled issue or copies the text.
Jira
Copies Jira-formatted ticket text to paste.
More
AI report (small text-only .html for chat), Markdown, HAR.

Tokens are set once under More → Configure integrations in the ticket. They stay in your browser; no TraceBug server is involved. Integration details

Debug it with an AI agent

The TraceBug MCP server lets your coding agent open the report and read the console, network, steps and screenshots, then find the fix in your code. It runs locally over stdio and finds reports in your project, Downloads and Desktop, so you don't pass a path.

Claude Code
claude mcp add -s user tracebug -- npx -y tracebug mcp

On native Windows, wrap the command: -- cmd /c npx -y tracebug mcp. Restart your agent, then ask it to debug the latest TraceBug report, or type /tracebug:debug_bug_report in Claude Code.

Cursor, Windsurf and VS Code setup

Chrome and Firefox differences

Capture, reports, export and MCP work the same in both. Firefox differs by platform design in a few places:

  • Site access is opt-in in Firefox, so the first capture on a site asks for it.
  • Screen video uses the browser's share picker. Chrome can also record the current tab with no picker.
  • Firefox can't record tab audio. Turn on the microphone if you want narration.
  • Failed requests from before you started capturing aren't listed in Firefox (it doesn't expose their status). Everything during the capture is.

Privacy and redaction

Nothing is uploaded to TraceBug. Reports stay on your machine until you share them. Passwords, hidden fields, tokens and cookie values are masked when captured.

For your app's own sensitive fields, open the extension's options and add field names or regex patterns under Redaction rules. Use Blur during a capture to hide an element in the replay and video. Privacy policy

Add the SDK to your app

The SDK puts the capture toolbar inside your own app, so testers on your dev or staging build don't need the extension. It has no runtime dependencies.

Terminal
npm i tracebug-sdk
App entry (main.ts, App.tsx, layout.tsx)
import TraceBug from "tracebug-sdk";

TraceBug.init({ projectId: "my-app" });

A toolbar appears on the right edge. Click Track session, reproduce the bug, then press Ctrl+Shift+B to open the ticket.

enabled
"auto" (default) runs on localhost and staging hosts only. Also "development", "staging", "all", "off" or a list of hostnames.
theme
"light" (default), "dark" or "auto".
toolbarPosition
"right" (default), "left", "bottom-right" or "bottom-left".
captureConsole
"all", "warnings", "errors" or "none".
redact
Extra field names and patterns to mask.

All configuration options · tracebug-sdk on npm

SDK quick reference

TraceBug.init(config)
Start TraceBug. Call once at app startup.
TraceBug.quickCapture()
Open the ticket for the current session.
TraceBug.takeScreenshot()
Capture the visible page.
TraceBug.generateReport()
The full report as an object.
TraceBug.getGitHubIssue()
The report as GitHub issue Markdown.
TraceBug.setUser({ id, email, name })
Attach who reported it.
TraceBug.use(plugin)
Filter events or change reports and exports (onEvent, onReport, onExport).
TraceBug.on(event, handler)
Subscribe to lifecycle events such as error:captured.
TraceBug.destroy()
Remove TraceBug from the page.
Full API reference

More guides