Lint/compile errors happen before the execution of your app. It can be a failed type check, a formatting issue, an unused import, etc.You can easily spot lint/compile errors because EasyCode Flow runs lint and build checks after each edit, catch errors, and display them either in the Chat Panel or in the App Preview.
You will be prompted with a automatic quick fix. You can either Accept or Reject.
Some lint errors do not break your app’s functionality. However, we recommend you try to fix them as they come up to prevent accumulation of errors.
Runtime errors happens during the execution of your app. It can be an unhandled exception, a failed network request, etc.You can find them inside server side or client side console logs. To make things easier, EasyCode constantly checks for runtime errors in your logs and display them in the Flow Diagram.
To fix runtime errors:
click Fix Error inside the Flow Diagram
notice it injects runtime logs into your Chat Context with pre-populated prompt
Unlike lint or runtime errors, there may not be an explicit error message. Here is an exmaple:Expected Behavior: Click button, modal opens up. Actual Behavior: Click button, nothing shows up.
Use the Flow Diagram to unerstand where things are failing. It could be in the front end, database, config or in a 3rd party library. Knowing this will help you prompt the AI better, significantly increasing the chance of fixing it.
To fix unexpected behaviors:
describe both what is happening, and what you expect to happen.
Once you describe the problem to the AI, EasyCode will automatically assess the situation and decide if Interactive Debugger should be activated. When activated, it will ask you to carry out the steps that cause the unexpected behavior.
1
Reproduce the problem
This can be simple such as clicking a button, or invovle multiple steps such as loggin in, navigating to a different page, providing some user input, and clicking a submit button.
2
EasyCode records what's happening
As you take these steps, EasyCode will add logpoints inside the relevant functions, tracing code execution end-to-end to determine where things went wrong.
Log points are different from console logs, they do not pollute your code thus do not need to be removed.
3
Click Reproduction Complete
EasyCode adds the relevant log data to context, and tries to fix the problem