What is debugging?
When something in your app isn’t working the way it should, debugging means figuring out what’s wrong and fixing it.
In Rocket, you do this by explaining the problem clearly so the AI can help you fix it without starting over.
What you’ll learn:
- How to describe problems so they’re easy to fix
- How to avoid asking for too many changes at once
- How to make small, safe fixes instead of big rewrites
- How to get help when the AI doesn’t understand what you need
- What works and what doesn’t when asking for help
When something goes wrong
Before you write a long message, try these quick checks:
How to describe problems
The best way to get help is to explain your problem clearly. Use this simple template:
Example
Here’s how to use the template:Step-by-step guide when something breaks
Follow these steps when something isn’t working:Check for error messages
Look for any error messages on the screen or in the browser.If you see an error message:
- Copy the exact error message text
- Use it in your problem description template
- You’re ready to ask for help
- Move to the next step
Success check: You’ve either copied the error message or confirmed there isn’t one.
Check if something looks wrong
Look at what’s showing on the page and compare it to what you expected.If something looks wrong:
- Describe what you expected to see
- Describe what you actually see
- Use this in your problem description template
- You’re ready to ask for help
- Move to the next step
Success check: You’ve either described what looks wrong or confirmed everything looks correct.
Check if nothing happens
If clicking buttons or interacting with the page does nothing at all:
- Look more carefully for error messages you might have missed
- Check if there are any messages that might explain what’s wrong
- Describe what should happen when you interact with the page
- Describe what actually happens (nothing)
Success check: You’ve gathered enough information to describe the problem clearly.
Write your message
Once you have information from any of the steps above, you have everything you need to write a clear message asking for help.Use the template from the “How to describe problems” section above to organize your information.
Success check: You’ve written a clear message with all the details Rocket needs to help you.
Quick commands for common problems
Rocket has special commands that can fix common problems quickly. Try these first before writing a longer message.
Layout and spacing issues
Layout and spacing issues
/Fix Layout Issues- Fixes things that look misaligned or spaced wrong/Fix Layout Issues in pricing grid- Fixes layout in a specific area/Fix Layout Issues for mobile breakpoints- Fixes responsive layout issues
Navigation problems
Navigation problems
Theme problems
Theme problems
/Fix Theme Switching- Fixes problems switching between light and dark mode
Login and authentication problems
Login and authentication problems
/Fix Supabase Authentication Issues- Fixes common login and signup problems/Fix Supabase Authentication Issues for users who can sign up but cannot log in- Fixes specific auth scenarios
Code organization
Code organization
/Organize Code- Cleans up messy or hard-to-find code/Organize Code in src/components/dashboard.tsx- Organizes a specific file
Limit changes to one file
Limit changes to one file
Use
@ followed by the file name to make sure changes only happen in that fileExample: @pages/login.jsx fix the submit button behaviorIf these commands don’t solve your problem, use the template below to describe it in detail.
Common problems and how to fix them
Here are examples of how to describe common problems:
Only fix one specific thing
Only fix one specific thing
Ask for an explanation first
Ask for an explanation first
Something feels slow
Something feels slow
If that doesn’t help, use this:
Button doesn't work
Button doesn't work
Information doesn't save
Information doesn't save
To limit changes to one file, use:
@pages/tasks.jsx followed by your message - This keeps changes only in the tasks fileSomething doesn't show up
Something doesn't show up
To limit changes to one file, use:
@pages/dashboard.jsx followed by your message - This keeps changes only in the dashboard fileExample: Fixing a login problem
Here’s how a vague message becomes a clear one.Better example - Still needs work
Better, but still missing:
- What “doesn’t work” means
- Where this is happening
- Whether an error appears
Good example - Clear and helpful
First, try this command:
/Fix Supabase Authentication Issues - This might fix login problems automatically/Fix Supabase Authentication Issues- Try this before detailed debugging
What to avoid
Here are common mistakes people make when asking for help:Being too vague
Asking for too much at once
Not giving enough details
Saying “sometimes it doesn’t work”
When your messages aren’t working
If you’ve used the template above but Rocket keeps making changes that don’t help, try these steps:
Rocket's fix is completely wrong
Rocket's fix is completely wrong
- Be more specific about the problem
- Use the template structure above
Rocket's fix is partially right
Rocket's fix is partially right
- Add more details about the problem
- Include error messages and where it’s happening
Rocket changed the wrong parts
Rocket changed the wrong parts
- Clearly state what NOT to change
- Be specific about what you want fixed
Rocket's fix changes each time
Rocket's fix changes each time
- Break the problem into smaller parts
- Fix one issue at a time
Rocket ignores your existing work
Rocket ignores your existing work
- Point to similar parts that work correctly
- Show what you want it to look like

