Get your API key

Beginner · 5 lessons · 42 min

Debugging with AI

Read errors, use the browser's DevTools and collect the evidence, so the AI fixes bugs in one or two tries instead of ten.

Who it's for

Non-coders who build with an AI agent and get stuck when something breaks, locally or after going live.

What you'll build

A reusable evidence pack prompt, a reproduce-and-logs routine and a failed-deploy checklist.

Why this course

AI debugging gets worse with every failed try in the same chat: one study found most models lose 60-80% of their debugging ability within 2-3 attempts. Beginners lose hours because the real clue (a console error, a missing environment variable on the host) was never given to the AI.

Take first: Prompting for AI coding

Lessons in this course

  1. 1Read an error messageThe four parts of every error, which line of a stack trace matters, and why Python reads bottom-up. 8 min Free
  2. 2Browser DevTools: Console and NetworkOpen DevTools, read red errors, keep logs across reloads, and read status codes and responses in the Network panel. 9 min Log in to open
  3. 3Reproduce the bug and read the logsMake the bug happen on purpose, shrink it, find server and browser logs, and use temporary debug logs. 8 min Log in to open
  4. 4Evidence the AI can useBuild an evidence pack: exact error text, Network status, logs, what changed and your setup, with secrets removed. 8 min Log in to open
  5. 5Works on my laptop, broken onlineMissing environment variables, public prefixes, failed builds, CORS, 404 on refresh and wrong API URLs. 9 min Log in to open
Next upMake your first game with AIBuild one small browser game by writing prompts, then add a third dimension and make it work on a phone.