DebugAI: AI Debugger That Reads Your Whole Codebase
The root cause of an error, from your actual code, and a fix you approve as a diff.
DebugAI finds the root cause of Python and JavaScript errors by reading your codebase, not just the line that crashed. It traces the error through your imports and call chains, then returns up to 3 ranked fixes, each as a diff you approve before anything changes.
- It knows your project. It indexes your workspace, so an answer can point at the function three files upstream that returned
None, without you explaining your stack.
- You stay in your editor. Select the error and press
Ctrl+Alt+D (Cmd+Alt+D on a Mac), or right-click it. When a command fails in the terminal, press Ctrl+Shift+P (Cmd+Shift+P on a Mac) and run DebugAI: Analyze Terminal Error: it reads the error straight from your terminal.
- Nothing changes until you say so. Every fix shows its file, line and diff first.
- Your agent can use it too. The same engine runs as an MCP server for Claude Code, Cursor and other agents.
Works in VS Code, Cursor, Windsurf and VSCodium. Free: 10 debugs a day, no card.
VS Code Marketplace · Open VSX (Cursor, Windsurf, VSCodium) · debugai.io
New in 2.14.0
The first debug reads the file the cause is in. When the line that crashed
imports the value that is wrong, DebugAI now reads that file too, so an answer can
name the setting two files away instead of guessing at it from the crash.
Signing in happens in your browser, and the first run stays out of your way.
Every Sign in button starts the same browser sign-in; a new account takes a minute
and needs no card. Before anything is indexed, one line says what is sent, and
its What is sent button opens the setting that lists the limits and turns it off.
The first index ends with what to do when a command fails, with no welcome tab and no
demo prompts. When a command fails, every instruction says to press Ctrl+Shift+P
and run DebugAI: Analyze Terminal Error, the same on Windows, macOS and Linux.
Apply keeps your place, and Undo stays. The diff opens beside the panel, Apply
edits your file in its own tab and says which line, and Undo stays until your next
analysis. A fix that is a command runs in a terminal once you press Run.
Cancel stops an analysis that is taking too long. Full list in the
changelog.
If a fix does not work, tell me and I will fix it. The ones that did not work
are how most of this release got written.
Open your dashboard → Messages
and say which error you sent and what the fix did instead. It reaches the person
who builds this, and it gets answered.
What DebugAI does
You hit an error. Instead of pasting it into a chat window and explaining your whole project, you run one command. DebugAI has already read your code, so it traces the error across files and hands you the fix.
- Reads the error from your terminal when you run DebugAI: Analyze Terminal Error
- Searches your indexed codebase for the files that matter
- Traces the failure across imports and call chains, not just the crash line
- Checks what your project declares and which interpreter you have selected, so a package that is genuinely missing is told apart from one installed somewhere your editor is not looking
- Returns the root cause plus 3 ranked fixes with confidence scores and exact
file:line
- Shows a diff preview before any change. You approve every edit
Get started
1. Install the extension
VS Code: VS Code Marketplace
Cursor, Windsurf, VSCodium: Open VSX, or search "DebugAI" in the
extensions panel
2. Ctrl+Shift+P, "DebugAI: Sign In"
Your browser opens, you confirm a short code, the editor stores the key.
Nothing to copy or paste. Free account, 10 debugs a day, no card.
(Already have a dbg_ key? "DebugAI: Set API Key" still takes it.)
3. Ctrl+Shift+P, "DebugAI: Index Entire Workspace"
Once per project. Free tier indexes up to 200 files.
4. Hit an error. Ctrl+Shift+P, "DebugAI: Analyze Terminal Error",
or Ctrl+Alt+D (Cmd+Alt+D on a Mac) in the editor
Step by step for your exact editor: debugai.io/start
Free tier: 10 debug sessions per day, no credit card.
Use DebugAI from AI agents (MCP server)
DebugAI ships an embedded Model Context Protocol (MCP) server. Any MCP aware agent can call DebugAI directly to debug errors across your codebase.
- VS Code agent mode can call the
debug_error tool, and lookup_error first: an instant, free check of whether this project has seen the error and which fix held
- The agent sends an error or stack trace, DebugAI returns root cause plus ranked fixes with exact old/new string edits it can apply directly
- The server registers automatically in VS Code 1.101.0 and later, and reuses the key you already signed in with
- After applying a fix, the agent calls
report_outcome to tell DebugAI whether it worked. Confirmed fixes join the same error memory that editor users build
- Responses are agent aware: when you hit your daily quota the tool tells the agent to stop retrying instead of looping
Your coding agent gets a debugging specialist rather than a generic guess. The agent reads the structured fix, applies the patch, reports back, and reruns your code.
In VS Code there is no extra install: sign in once in the extension and the MCP server is live for its agent mode.
Claude Code, Cursor, Windsurf, or not in VS Code? The same server ships standalone as @debugai/mcp on npm, for those and for Claude Desktop, Zed, Gemini CLI, Cline, and any other MCP client. One command signs you in and writes the config for every client it finds:
npx -y @debugai/mcp setup
What reading your project adds
A pasted error alone cannot show the file the bug started in. Because DebugAI has read your project, an answer can point at that file, not only at the line that crashed.
Proactive Scan (experimental, being rebuilt)
DebugAI: Scan Workspace (Proactive) reviews your changed files for bugs that have not thrown yet, with the rest of your project as context. In November we measured it on real projects, and too many of its findings were not worth your time. So DebugAI no longer offers it when you start, and a rebuilt scan is under way. The command is still in the Command Palette if you want to try it.
When you run it, DebugAI:
- Collects files with uncommitted changes (on a clean tree, files from your last 30 commits; with no git, the most recently modified), plus the active file, up to 10 files per scan; your plan decides how many are reviewed (3 on Free, 10 on Pro and Team), except that a project's first scan reviews every file it is offered
- Auto-indexes them, then pulls the semantic neighbors from your project index, so it reviews each file with the rest of your codebase in context rather than in isolation
- Returns ranked findings, each with a severity, an explanation, the exact
file:line, and a suggested fix you preview and apply with the same one-click diff as debug
Scan limits by tier
| Tier |
Scans per day |
Files per scan |
| Free |
3 |
3 |
| Pro |
22 |
10 |
| Team |
52 |
10 |
A project's first scan reviews every file it is offered whatever your plan (up to 10), and stops once it has three findings worth showing.
Errors DebugAI handles
- Python
AttributeError, including 'NoneType' object has no attribute
- Python
TypeError, wrong argument types, None passed where an object was expected
- Python
NameError, ImportError, ModuleNotFoundError, KeyError, IndexError
- JavaScript and TypeScript
TypeError: Cannot read properties of undefined
- React hooks errors, stale closures, infinite render loops, missing dependencies
- Runtime exceptions and tracebacks that span multiple files
How to run DebugAI
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P) and type DebugAI to see every command. Two shortcuts skip the palette:
- Right-click in a file for Analyze Error. In the terminal, the right-click menu has Analyze Terminal Error on macOS and Linux; on Windows, hold Shift while you right-click, because a plain right-click in the Windows terminal pastes.
Ctrl+Alt+D (Cmd+Alt+D on a Mac) analyzes from the editor.
DebugAI does not take Ctrl+Shift+D. That is VS Code's own Run and Debug view, and an extension that shadows it breaks a core editor feature. To change the shortcut, open Preferences: Open Keyboard Shortcuts and search debugai.
Commands
| Command |
What it does |
| DebugAI: Sign In |
Browser sign-in. No key to find or paste |
| DebugAI: Analyze Terminal Error |
Reads the last error in your terminal, so there is nothing to paste |
| DebugAI: Analyze Error |
Paste any error from any source |
| DebugAI: Index Entire Workspace |
Index your codebase for cross file context (run once) |
| DebugAI: Index Current File |
Index a single file |
| DebugAI: Scan Workspace (Proactive) |
Experimental, being rebuilt: review your changed files for bugs that have not thrown yet |
| DebugAI: Debug in Browser |
Closed beta. Catches browser-side failures your terminal never shows, such as silent exceptions and swallowed 4xx and 5xx responses |
| DebugAI: Show Browser Captures |
Closed beta. List what Debug in Browser has captured |
| DebugAI: Check Index Status |
See what is indexed |
| DebugAI: Add Agent Rule |
Add the rule that makes your editor's agent call DebugAI when a command fails, to the end of the file it reads |
| DebugAI: Try Demo Analysis |
See DebugAI work without a real error |
| DebugAI: Open Dashboard |
Open your dashboard on debugai.io |
| DebugAI: Set API Key |
Enter an existing dbg_ key by hand |
| DebugAI: Clear API Key |
Remove your stored key |
Supported languages and frameworks
Python: FastAPI, Django, Flask, Celery, SQLAlchemy, Streamlit, PyTorch, TensorFlow, Pandas, NumPy
JavaScript and TypeScript: React, Next.js, Node.js, Express, Vue, Svelte, Vite, tRPC
Framework detection is automatic. No config files needed.
Your code and your privacy
- During indexing: while you are signed in, DebugAI indexes the project you have open: when you sign in, once when VS Code starts, and again for each file you open or save. Each file's text (up to 50 KB) is sent over HTTPS, up to 500 files per run on any plan. It is split into chunks, turned into embeddings by Voyage AI, and stored on DebugAI's servers as chunks of text, each with its embedding.
.env files, key and certificate files, and build or dependency folders are never sent. The first time, before any file is sent, one line says the text of your source and config files goes to DebugAI's servers, and its What is sent button opens the debugai.autoIndex setting. Set it to false and only the Index commands and Scan send files.
- During debugging: the error message, the code around your cursor (30 lines either side, never more than 50,000 characters), unless that file is an environment file, a key or certificate file, or a credential file (such as
.npmrc, .netrc, .git-credentials, or anything under .ssh or .aws), or the window holds a private key, in which case no code is sent and the status bar says so, the full path of the file you are in, and a few facts about the project: the dependency names and versions your manifest files declare, the names of Python modules in your workspace, whether a virtual environment or node_modules folder exists, and the path of the Python interpreter VS Code has selected. No git information goes with a debug: from 2.12.0 it carries no branch name, no changed file paths and no git diff text (2.11.0 and earlier sent the branch name, changed paths and up to 3,000 characters of git diff text). The bundled MCP server, when your agent calls it, also reads up to 3 of the source files a stack trace names, 40 lines either side of the error.
- Debug in Browser (closed beta): for a failed network request it sends the method, URL, status, request and response headers, and both bodies. Credential headers (Authorization, Cookie, Set-Cookie and any name that looks like a key, token or secret) are dropped first, secret parameters in URLs are masked, and bodies pass through secret redaction before they are cut to length. From 2.14.0, a failure that names no file of yours (an image or script that failed to load, a Content-Security-Policy report, a request sent from library code) is searched for in your project on your machine, and when exactly one file names its path or route, the analysis opens that file there and sends the code around it, as under During debugging.
- Proactive Scan: the command picks up to 10 files whatever your plan, indexes their text as described under indexing whether or not
debugai.autoIndex is on, and sends their paths, sizes and a recency score (uncommitted changes rank highest) to be scanned; your plan decides how many are reviewed (3 on Free, 10 on Pro and Team), except that a project's first scan reviews every file it is offered. It uses git only to choose files, and sends no history, branch name or diff. DebugAI keeps each finding's file path, line and severity, to show you the result and to learn whether a fix was used.
- Everything else: no code and no file names. The extension asks DebugAI for your plan, usage and product notices, and reports counts of its own errors. It also reports whether a fix helped or was applied and which notices you saw. While VS Code telemetry is on, it sends usage events (event names, language, plan, counts; no code or paths) to PostHog under your account id. No telemetry on your code.
Browser sign-in keeps your API key in VS Code SecretStorage. A key starting with dbg_ typed into the debugai.apiKey setting is moved there the first time DebugAI uses it, and sits in settings.json until then. Signing in through the browser never puts the key on your clipboard or in a settings file at any point.
Privacy policy
Pricing
| Tier |
Price |
What you get |
| Free |
$0 |
10 debug sessions per day, Claude Haiku 5.5, codebase index up to 200 files, MCP server. Works in VS Code, Cursor, Windsurf, and VSCodium. |
| Pro |
$12 per month |
Claude Sonnet 4.6 on complex errors, 1,000 debugs a month included, then fair use, no 200-file index cap, full session history. Includes a 14-day Pro trial, no card. |
| Team |
$18 per seat / month |
Everything in Pro, with 5,000 debugs a month pooled across seats. Contact sales, self-serve checkout is not live yet. |
Monthly prices shown. Full feature breakdown and annual options live at debugai.io/pricing.
Founding rate, closing soon: accounts created before November 1, 2026 can lock Pro at $9 per month for life by upgrading by December 7, 2026. Claim it.
Frequently Asked Questions
What is DebugAI?
DebugAI is a VS Code extension and MCP server that finds the root cause of code errors by reading your project, then returns ranked fixes with a diff you review before applying.
How do I set it up?
Install it, then run DebugAI: Sign In from the Command Palette. Your browser opens, you confirm a short code, and the editor stores the key. There is no key to locate, copy, or paste.
How does DebugAI debug errors across multiple files?
It indexes your project on DebugAI's servers first. When an error happens, it searches that index, traces the failure through your imports and call chains, and reads the files that actually caused the error, not just the crash line.
Does DebugAI read my entire codebase without asking?
Yes, by default. While you are signed in it indexes the open project at startup and each file you open or save. Set debugai.autoIndex to false and only the Index commands and Scan send files.
What AI model powers DebugAI?
Claude Haiku 5.5 handles analysis. Complex cross-file errors on paid tiers route to Claude Sonnet 4.6. If Claude is ever unavailable, DebugAI falls back automatically to GPT-4o-mini. The response format is identical either way.
Can I use DebugAI with Claude Code or other AI agents?
Yes. DebugAI includes an MCP server that exposes lookup_error, debug_error and report_outcome. Any MCP aware agent can call it. Sign in once in the extension and it works automatically in VS Code 1.101.0 and later. Outside VS Code, npx -y @debugai/mcp setup wires up every MCP client on the machine.
Does it conflict with GitHub Copilot?
No. It does not interfere with Copilot, Copilot Chat, or any other extension. It is the debugging companion to your existing AI stack.
Does it work in Cursor, Windsurf, or VSCodium?
Yes. DebugAI is a standard VS Code extension, so it runs in any VS Code compatible editor. Install it from Open VSX, and browser sign-in works the same way it does in VS Code.
Does it work offline?
No. Indexing and analysis both need a connection to the DebugAI API.
How many free debug sessions do I get?
10 per day, free forever. Need more, upgrade to Pro from debugai.io/pricing.
Recent releases
2.14.0 - the first debug reads the file the cause is in when the crash line
imports it, signing in is one browser sign-in from any button, one line says what
indexing sends before it sends anything, and the first run ends with what to do when a
command fails, the same on every OS, with no welcome tab.
Apply keeps the panel in view and Undo stays, a fix that is a command runs in a
terminal, Cancel stops an analysis, an answer that names no file lets you choose one,
and Debug in Browser catches failures from your own backend and checks whether a fix held.
2.13.0 - VS Code offers the DebugAI rule to your agent, and an agent can say which
folder a command ran in and that an answer's root cause was wrong. Signing in indexes
your project and a big first index finishes by itself, a slow file is no longer
counted as failed, a failed request from the browser console is sent and answered with
where the reason is, DebugAI's own messages are never sent as your error, an answer
DebugAI could not read is shown as a failure with Retry, and an agent's debug reads
the part of the file the error is about.
2.12.1 - the listing no longer gives a speed it has not measured on the current
engine, a slow project read no longer slows every debug that follows it, a debug
never starts the Python extension, and the bundled MCP server takes the SDK release
that fixes a high-severity advisory.
2.12.0 - a debug no longer sends git context, automatic indexing has a setting and
a notice, and Index Entire Workspace finds your files again after storing nothing
since 2.10.0. A fix for another file opens against that file, a Pro or Team
account hears once a month when its included debugs are used, and the listing
now says what is sent and where.
2.11.0 - the MCP server VS Code registers for your agent answers from your
project's memory first. lookup_error says in under a second, free and with no
model call, whether this project has hit the error before and which fix held.
debug_error takes the command that reproduces the failure and aims fix #1 at
making it pass. A fix that worked only after the agent changed it is remembered
as changed, a fix reported as failed is not handed back at full confidence, and
every answer names the project it was filed under and the build that wrote it.
Built from one agent's week-long field report, finding by finding.
2.10.1 - the bundled MCP server accepts all 24 languages it can diagnose,
your operating system's own error messages are sent instead of refused, and a
project path with a space in it no longer truncates.
2.10.0 - The bundled MCP server now sends what your project declares, with
versions, so answers about third-party APIs are grounded in the release you
actually have. Repeated errors at the same file and line no longer get a
variation of the fix that just failed. Indexing now covers Java, C# and your
build config, chooses your source files over snapshots and fixtures when a
project is larger than your plan indexes, and tells you what it could not store.
The bundled MCP server never opens your .env.
Full changelog
debugai.io · support@debugai.io · Privacy · Terms