Debug Mode

Fix broken code faster with a dedicated AI agent that investigates and repairs your project.

📘 Debug Mode runs a specialized sub-agent that systematically diagnoses and fixes code issues — going deeper than a regular chat prompt.

What is Debug Mode?

When your app has a bug, asking the chat to "fix this" works for simple issues. But complex errors often need more than a single prompt — they require investigating the root cause, testing a fix, and verifying nothing else broke. Debug Mode handles this with a sub-agent that works through the problem step by step: reading the error, tracing the cause, applying a fix, and confirming it resolved the issue.

Triggering Debug Mode

There are two ways to activate Debug Mode — manually or automatically.

Manual trigger:

  1. Open your project in the Anima Playground.
  2. Click the Debug button in the chat input toolbar (the bug icon)
  3. Describe the problem — paste the error message or describe what's broken.
  4. Let the agent work — it will investigate your code, identify the root cause, and apply a fix
  5. Review the result — the agent explains what it found and what it changed

Automatic trigger:

Anima analyzes your prompts and automatically routes them to Debug Mode when it determines the issue is better handled by the debug agent. You don't need to do anything differently — just describe your problem in the regular chat as you normally would. When this happens, you'll see an indicator that Debug Mode is handling your request.

What the agent does

Once active — whether triggered manually or automatically — the debug sub-agent:

  1. Reads your full codebase — not just the file you're looking at T
  2. races the error to its source — finds where the problem originates, not just where it surfaces
  3. Tests the fix — verifies the change resolves the issue before presenting it
  4. Explains its reasoning — tells you what was wrong and why

When to trigger it manually

Trigger Debug Mode yourself when:

  1. You want to force the debug agent on something the regular chat handled but got wrong
  2. The error isn't showing in the preview, but you know something is broken
  3. You want the deeper investigation upfront, without waiting for the gatekeeper to decide

Tips

  1. Include the error message — paste it directly for faster diagnosis
  2. Describe when it broke — "This worked before I added the login screen" gives the agent useful context
  3. Check the explanation — the agent's summary tells you what changed, so you can decide whether to keep or revert the fix.