Debugging Errors
Errors can happen while you build and test an app. Anything App helps app authors copy useful error details into Build mode so the AI can generate a fixed version.
Errors are part of building
During development, an app may fail because of unexpected data, an edge case, a UI issue, or an AI/API problem. The fastest fix is usually to give the AI the clearest evidence you have.
Copy an error into Build mode
When your app encounters an error during development or testing:
- Look for the detailed error message shown to you as the app author.
- Click Copy message.
- Paste the copied message into the editor in Build mode.
- Send the prompt.
- The AI analyzes the error and generates a fixed version.
Describe behavior problems
Not every issue produces an error message. You can also describe what is wrong in your own words.
This works well for:
- Behavior that seems wrong but does not error.
- UI issues or unexpected rendering.
- Features that do not work as intended.
Be specific about what you tried, what happened, and what you expected to happen.
Common error types
- Runtime errors happen while the app runs, often because of unexpected data or edge cases.
- Type errors usually come from mismatched data shapes or values.
- API errors can involve AI features or external data sources available through the platform.