Find the root cause in Plan mode when blind fixes don't work
Asks Lovable to investigate the code and find the real problem before changing it
When to use it
You've tried fixing an error twice, but it keeps returning in new ways
Why it is worth it
Finds and fixes the actual cause instead of piling up patches that don't stick
Before you start
- Try to fix once or twice
- Describe what is broken clearly
The prompt
My task manager app's tasks aren't saving to the database. This was working last week, and I tried fixing it twice, first by adding error handling in the save function, then by checking the API connection. But tasks still fail to save, sometimes silently and sometimes with a validation error. What is the root cause of this bug? Show me the relevant code and explain what is going wrong and why before proposing a fix.
Swap the task manager app with your own app and the issue you're investigating
What you get
A clear explanation of why the bug occurs and what part of the code is responsible
From docs.lovable.dev/prompting/prompting-debugging