Advanced Debugging
CodeSky can find and fix errors in your app. The live preview reports build and runtime errors back to the builder, including modules that fail to load and pages that render blank. Click Fix with AI and CodeSky repairs the file at fault, showing the change as a diff you accept before it is saved. Errors that span several files go to the AI chat instead.
What the preview catches
- Runtime errors — uncaught exceptions while the app runs
- Unhandled promise rejections — failed async calls nobody caught
- Build errors — the messages from Vite's error overlay
- Modules that fail to load — a file that won't compile or doesn't exist
- Blank screens — the app loaded but rendered nothing
From Error to Fix
CodeSky AI watches the running preview for errors and shows them in an error bar above it, with the message and the file it came from. One click sends the error to the AI. If the error names a single project file, CodeSky repairs that file and stages the change for you to review; otherwise it asks the AI, through the chat, for the smallest change that resolves it.
Fix with AI
One button on the error bar sends the error and the file at fault to the AI
Review Before Saving
Single-file fixes open as a diff; nothing is written until you accept it
Points at Your Code
When one fault is reported several times, the error that names your source file is kept over one from a dependency
Preview Console
A console chip on the preview toolbar counts errors and opens a list of every one reported, with repeats collapsed
Auto-fix
Optional: fix errors that stay on screen without clicking, with at most two attempts per error
Roll Back
If a fix makes things worse, restore the version from before it
AI-Assisted Debugging
Paste an error or describe the wrong behavior in chat, and the AI traces it through your code
Debugging Workflow
Identify Issues
The preview reports the error and shows it in the error bar with the file it came from
Fix with AI
Click the button, or let Auto-fix start it for you
Review the Change
Read the diff and accept it, or dismiss it and try a different request
Fix and Verify
Accepting saves the file and refreshes the preview so you can confirm the error is gone
Debugging FAQ
Can CodeSky fix errors in my app?
Yes. When the live preview hits a build or runtime error, click Fix with AI. You can also paste any error message into the chat, or describe what is going wrong, and the AI will find the cause in your code and change it.
Will a fix change my code without asking?
When the error points to one file, the fix is shown as a diff and is only saved after you accept it. Errors that need more than one file, such as a missing package or a missing file, are sent to the AI chat as a normal change, which is saved as a version you can restore.
What does Auto-fix do?
Auto-fix is off by default. When you turn it on, CodeSky runs Fix with AI by itself when an error stays on screen, with at most two attempts per error. It uses credits like any other AI request.
Can I set breakpoints and step through code?
No. CodeSky does not include a step-through debugger. It works from the errors your app reports in the preview and from the error text or description you give the AI.