Coding 8 min Intermediate 6 steps Learn+

Find and fix a bug with Cursor's AI

A safe, step-by-step way to use Cursor's AI to understand an error, find its cause and fix it, without letting the AI make changes you do not understand.

You'll end up with

A fixed bug, a clear explanation of what went wrong and a reviewed change.

What you'll need
  • Cursor installed
  • A code project with a bug you can reproduce

Step by step

  1. 1

    Open the project and reproduce the bug

    Open your project folder in Cursor and make the bug happen. Copy the exact error message and the steps that cause it.

  2. 2

    Open the AI chat with the right files

    Open the AI chat and add the files involved (type @ to reference files). Paste the error and the steps.

Learn+ · Coming soon

Finish this how-to with Learn+

4 more steps, plus video and new skills every week. Join the waitlist to get early access.

What's in Learn+

Questions

Can I trust the AI's fix?

Treat it like a suggestion from a fast teammate: review it, test it and make sure you understand it.

Does Cursor work with any language?

It works with most popular languages and frameworks, since it is built on VS Code.

Learn next

All how-tos