Skip to main content
Something breaking is a normal part of building. This guide covers how to describe bugs so Lovable can fix them, how to investigate persistent problems, and ready-made prompts for deeper work like codebase audits and performance checks.

Quick workflow

When something breaks, work through these steps in order:
  1. Try to fix. When an error appears, use Try to fix once or twice. Your account includes 10 free fixes, and each one becomes available again 24 hours after you use it.
  2. Describe the bug clearly. If the error survives, tell Lovable what is broken, where, what you expected, and what happened. Attach a screenshot or paste the error message when you have one. See Describe the bug, not your frustration.
  3. Switch to Plan mode. Stop retrying blind fixes. Ask Lovable to find the root cause in Plan mode before changing more code. See Investigate persistent problems in Plan mode.
  4. Revert if fixes have tangled the code. Restore a working version from version history, or edit a past message and choose Revert and resend. See Revert and take a different path.
Repeated blind fixes tend to pile up code that hides the real problem. Switching to Plan mode after one or two failed attempts is usually faster than trying again.

Describe the bug, not your frustration

Lovable fixes what you can point at. Say what is broken, where, what you expected, and what happened instead.
Avoid generic and broad prompts:
Be specific about the symptom and the location:
Three ways to give Lovable more to work with:
  • Attach a screenshot of the broken state, especially for layout issues.
  • Paste the error. Lovable reads your app’s console logs itself, but pasting an exact error message from your browser’s developer tools or your backend logs still helps when the error happens outside the preview, for example on your published site:
  • Point at the timeline. If something used to work, say so, and let Lovable look at what changed:

Investigate persistent problems in Plan mode

When a fix does not stick, or the same error keeps returning in new variations, the root cause has not been found. Switch to Plan mode and investigate before building again. Prompts that work:
Ask “why did this happen?”, not just “what do we do now?”. A quick fix might silence an error without addressing the logic behind it:
When a fix in one place coincides with a new problem in another, ask about the connection instead of treating them separately:
And when a single component is broken beyond patching, isolate it. Ask Lovable to build a fresh, minimal version of just that component, confirm it works, and then reintegrate it. Rebuilding one piece is often faster than patching an overly broken one.

Revert and take a different path

If a series of fixes has tangled the code, rewinding is often faster than untangling. Restore a working state from version history, or edit a past message and choose Revert and resend to take a new direction from that point. After reverting, tell Lovable what you did so it has the context:
After solving a hard bug, close the loop so future sessions benefit:

Advanced prompts

Ready-made prompts for deeper work. Run the audits in Plan mode so you get analysis before anything changes.

Codebase audit

Useful when the project has grown and you suspect structural issues:
You can then implement the recommendations one at a time, verifying each in the preview.

Performance audit

Useful when the app works but feels slow:

Fragile changes

When you are about to touch a delicate area, such as authentication or payments, set the guardrails in the same prompt as the task:

Community debugging guidebook

These prompt snippets come from the Lovable community. Paste the ones that fit your situation into a prompt, or add them to your project knowledge so they apply to every request.

When to ask for help

If you are stuck despite all of this, ask the docs assistant on any page of these docs, or bring the details to the Discord community. Use Lovable to gather the specifics first (the error, what was tried, when it started), so others can help quickly.