Errors will inevitably happen when building software, whether the code is written by an AI or a human. When working with Leap, the key is not to panic or waste credits by repeatedly pasting the same error. Instead, use a systematic debugging approach. Leap works best when you provide clear context and precise, focused instructions. This guide explains how to debug issues effectively, collaborate with Leap, and unblock yourself when things don’t go as expected.Documentation Index
Fetch the complete documentation index at: https://docs.leap.new/llms.txt
Use this file to discover all available pages before exploring further.
1) Provide Detailed Bug Reports
When you encounter an issue, the fastest way to get to a fix is by writing a strong bug report. Just like when working with a developer, the more context you share, the easier it is for Leap to understand what went wrong and how to fix it. A strong bug report typically includes:- A clear description of the problem
- Steps to reproduce the issue
- What you expected to happen
- What actually happened
- Any relevant logs, screenshots, or error messages
2) Add relevant logs
If Leap struggles fixing the issue even after providing a strong bug report, it can be a good idea to add additional logging. Example:3) Use Iterative Debugging
Big issues are often solved step by step. Instead of asking Leap to “fix everything,” try breaking down the problem:- Ask Leap to identify why the error is happening
- Add logging or test cases if the cause is unclear
- Apply the suggested fix and retest
- Share updated results with Leap