Gianluca Giuliani
1
This guide is based on the official Lovable documentation, material from other developers and my personal experience, put into simple and accessible language. This is the place where you will find practical solutions for real problems that every Lovable developer faces.
Each section of this guide follows the best proven debugging methodology, with examples and easy to understand language for non-technical users.

Errors are common. Always test before going to the next step.
The AI already knows the most common problems and how to solve them
It's the quickest and easiest way to solve errors, saving time and credits
Lovable will check your logs and it knows all of your code
If the "Try to Fix" button doesn't work, play detective:
Break down the problem; ask “Where did this start failing?” or “What changed?"
Errors doesn't come from nothing; look for inconsistencies
Put together a "report" of the errors
Break down the problem. Try to understand the root of the problem, use chat mode ask questions and observe wrong behaviours.
Don't say "e-mail doesn't work". Instead, send a prompt like:
"After I fill the form and hit send, the information is not stored on my database and I don't receive any e-mail confirming that the information was submitted.
I expect a flow of: Fill the form → Store Information on Table X → E-mail confirmation"
Using this framework will help you organize what you are observing, beforing reporting the errors.
Don't write "payment is not working". Instead, send a prompt like:
"CONTEXT: Payment is not working on my courses app
PROBLEM: When I click at the payment button, it is not processed
CURRENT BEHAVIOR: The button loads but does not process the payment
EXPECTED BEHAVIOR: Button should load a payment form to process the payment
TEST: Input a 0,01 dollar charge and I will use my credit card to test it"
"The (function) is not working properly. When the User (does action), it should (happen this), instead it (happens this). Could you think of a plan to fix it?"
"On the (page), the table is not centered. The (element) should be (in this way) however looks (like this). Could you adjust the layout of it?"
"The system is slow when (specific situation happens). It takes (X time) to (do something). How can we optimize it to work faster?"
Create the system's structure with simple navigation between pages
Choose the colors, style, and fonts, creating a consistent layout across all pages
Implement the main functionalities of your system
Extra features to make your system even better
Improve texts, adjust spacing, and add finishing touches
"I want to add an admin panel to my system, with X features. How can we design and structure it? Let's brainstorm, if you need more info, ask me more questions."
"I am having a problem with the sign up. The e-mail is not being sent after registering. Could you check the logs and see what is happening?"
"Now the problem is gone, awesome! Could you explain how you fixed and how can I avoid similar problems in the future?"
Treat it like a colleague, use it to brainstorm ideas, solutions, error fixes. It is better to use chat mode a few times, before implementing a solution. On average, I use chat mode from 2 to 4 times before actively prompting something.
Sometimes Lovable.Dev will use an AI model that does not exist, use Chat Mode to check it.
💡TIP: If an edge-function is not working, ask Lovable to analyze the logs. You can also send / upload the documentation of an API you might be using.
What it means: Could be a simple or critical error
"My screen / preview is completely blank. It used to show (this thing ). Could you identify the error and create a plan on how to fix it?"
"The screen / preview remains blank. Could you check for: Syntax errors in the code, issues with imports, conflicts between components; after, based on your findings, design a plan to fix the errors"
"On page (X ) , the components are misaligned:
- (Component Y) should be (in this place ) instead of (this place )
- (Pop-up Z) is overflowing / going out of the screen
- The spacing between (Component Z) and (Component W) is (too large / small )
Could you develop a plan to solve these issues?"
Attach a screenshot of what it is not looking good.
As of late 2025, mobile devices account for the majority of global web traffic, with estimates around 58.7% to 64.35%.
"The ( button X ) on the ( page / table / form Y ) is not working.
When I click, it should ( expected result) , instead it is doing ( unexpected result ) . Could you analyze the error and fix the functionality?"
Exact name and location
( attach a screenshot )
What happens when you click
What should happen
"The ( form X ) on the ( page Y ) is not saving the data. When I click, it should ( expected result, like save the data) , instead it is doing ( unexpected result, not saving it ) . Could you analyze the error / logs and fix the functionality?"
List all fields you filled in
Describe exactly what you did to save
What should happen after saving
Structured solution:
"Screen navigation is not working: - On ( page X ), I click the ( link / button Y ) on the footer, that should redirect to the ( page Z ), but it is redirecting me to ( page W ). Could you analyze it and fix the navigation flow?"
"I am experiencing a loss of connection to Supabase. The data is not loading and authentication failing. (Share any specific error messages encountered ) . Could you investigate and help re-establish the connection to Supabase?"
Confirm that API keys are correct
Validate if Supabase is responding / connected
Re-establish the connection if necessary
The data I submitted through the application is not visible in the expected display list:
- Data submitted: (details of the data saved )
- Expected display location: (specific area or list in the UI )
- Current view: (description of what is currently shown or missing )
Please investigate if there is an issue with how this data is being retrieved.
We're observing significant performance degradation in the application. Please provide details on the following:
SLOW SITUATIONS:
- When performing [specific user action]: observed delay of [duration]
- Screen [name of screen/module]: experiences slow load times
- Function [name of specific function/feature]: intermittently freezes or becomes unresponsive for [duration]
IDEAL BEHAVIOR:
- All interactions should be fluid, smooth and completed quickly
Analyze the current code, the reported issues and improve the performance of this app.
PROBLEM
Images within the application are experiencing significant delays in loading and appearing.
CONTEXT
- Approximate Image Size: (if known )
- Occurrences: (specific pages )
- Affected Devices: (computer / mobile/ both )
OPTIMIZATION GOAL
Optimize image delivery and rendering to ensure fast loading times across all affected areas and devices.
CONTEXT: I am currently experiencing a persistent error loop where previous attempts to resolve issues have inadvertently introduced new problems, hindering progress and requiring a fresh perspective.
EXPECTED RESULT: (what you wanted to do )
PROBLEM: The application is caught in a self-perpetuating cycle where each attempted solution creates additional errors.
CURRENT RESULT: ( what you are getting )
ATTEMPTS MADE: (what has already been tried )
Analyze the code, the attempts made and, after that, help me brainstorm a different approach on how to achieve the expected result.
This strategy breaks the vicious cycle and allows for a fresh approach.
A simple solution is to restore to a working version of the app, so you can start over.
You can use the Version History function on the top of the chat box.

Or you can go to the message where you have a good working version and revert the app to that version.

💡TIP: When adding new features / performing changes:
- Always test everything everytime
- Write on the prompt to not change anything but what you want (e.g.: Do not change anything else / the layout )
What to include in your Custom Knowledge:
Project guidelines: What to prioritize, what to avoid or how decisions should be made.
User personas: Detailed descriptions of your target users and their needs.
Design assets: Color palettes, typography, layout rules and other visual elements.
Coding conventions: Naming conventions, formatting rules and file structure.
External references: Links to API docs, internal tools, design systems or style guides.
Security practices: Guidelines for secure coding, data protection and handling sensitive information.
Compliance requirements: Any legal or regulatory requirements your project must adhere to.
"Let's implement (feature X ), help me come up with a strategic plan to achieve:
STEP 1: (first part )
STEP 2: (second part )
STEP 3: (third part )
We should start with step 1, and then move to the other steps."
A small part
Validate functionality
Ensure stability
Continue incrementally
Always your first action
Observe, compare, and report
Clear and structured communication
Build from basic to complex
Awesome! You've learned techniques that will help you solve 99% of the most common issues that you can face on Lovable. Each error you face and fix, makes you a better, more experienced vibe-coder. Remember to not panic and don't let anything hold you back.
Lovable Debugging Guide