Quick workflow
When something breaks, work through these steps in order:- 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.
- 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.
- 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.
- 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.
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.- 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: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: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: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.Error fixing
Error fixing
Code modification approach
Code modification approach
Database integration
Database integration
Thorough issue analysis
Thorough issue analysis
Solution verification
Solution verification
Code consistency
Code consistency
Progressive enhancement
Progressive enhancement
Documentation and explanation
Documentation and explanation
Technical debt awareness
Technical debt awareness
Learning and adaptation
Learning and adaptation
Preventing duplicate components
Preventing duplicate components
Dead code elimination
Dead code elimination
Preserving working features
Preserving working features
Deep problem-solving approach
Deep problem-solving approach
Database query verification
Database query verification
UI consistency and theming
UI consistency and theming
Systematic debugging approach
Systematic debugging approach
Type safety and data validation
Type safety and data validation
Data flow management
Data flow management
Performance optimization
Performance optimization
Error management and resilience
Error management and resilience
Component architecture
Component architecture
API integration and network management
API integration and network management