> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Error debugging

> Learn how to spot, diagnose, and resolve errors in your no-code agent workflows using detailed step-by-step diagnostics and execution logs.

## How to debug errors in your no-code agent?

Find and resolve issues in your Agents with clear error diagnostics. When a step fails, you'll see:

* The exact step that failed
* A descriptive error message
* Contextual information for debugging

This targeted error handling helps you quickly fix issues before they cascade through your AI workflow.

<img src="https://mintcdn.com/maximai/xP8Yv_VjZfosz7nU/images/docs/evaluate/how-to/prompt-chains/prompt-chain-error-state.png?fit=max&auto=format&n=xP8Yv_VjZfosz7nU&q=85&s=5becda7d38f9a5b6c31fd39da1adb1bd" alt="Error details shown for a failed step in an Agent" width="2892" height="1636" data-path="images/docs/evaluate/how-to/prompt-chains/prompt-chain-error-state.png" />

In this example, the agent stopped at the Code node due to the input being a non-JSON parseable string.\
Click on the `View run logs` button in the bottom toolbar to see the full execution log of the chain and the data passed in each node.

<img src="https://mintcdn.com/maximai/SwDaTi397y_biFsK/images/docs/evaluate/how-to/prompt-chains/prompt-chain-trace-sheet.png?fit=max&auto=format&n=SwDaTi397y_biFsK&q=85&s=d4dde91858220344a9abec7741b32348" alt="Traces shown for error details for a node in an Agent" width="3024" height="1714" data-path="images/docs/evaluate/how-to/prompt-chains/prompt-chain-trace-sheet.png" />

### Debugging errors in loops

In cases where a node executes multiple times due to loops, view the execution log of each iteration and in cases of errors, use it to identify the exact inputs and outputs that led to the error.

Let's take an example use case where the code checks if the input is JSON parseable or not. And here, the code block has a bug where it sends back the data to the code block to send it in an infinite loop.

<img src="https://mintcdn.com/maximai/xP8Yv_VjZfosz7nU/images/docs/evaluate/how-to/prompt-chains/prompt-chain-infinite-loop.png?fit=max&auto=format&n=xP8Yv_VjZfosz7nU&q=85&s=8ca36d40fb266d03caaa598b52b3670a" alt="Infinite loop in a code block" width="2894" height="1638" data-path="images/docs/evaluate/how-to/prompt-chains/prompt-chain-infinite-loop.png" />

Click on the `View run logs` button in the bottom toolbar to see the data passed in each iteration.

<img src="https://mintcdn.com/maximai/xP8Yv_VjZfosz7nU/images/docs/evaluate/how-to/prompt-chains/prompt-chain-infinite-loop-trace-sheet.png?fit=max&auto=format&n=xP8Yv_VjZfosz7nU&q=85&s=6f4429f86b37682c0dccd63d77f865f7" alt="Traces shown for error details for a node in an Agent" width="3016" height="1718" data-path="images/docs/evaluate/how-to/prompt-chains/prompt-chain-infinite-loop-trace-sheet.png" />

### Search and filtering

You can search and filter the execution log by using the search bar and the filters to filter specific types of errors.

<img src="https://mintcdn.com/maximai/xP8Yv_VjZfosz7nU/images/docs/evaluate/how-to/prompt-chains/prompt-chain-sheet-filtering.png?fit=max&auto=format&n=xP8Yv_VjZfosz7nU&q=85&s=9cdecdec807c03bc5c94c61aa8d6e99a" alt="Search and filter the execution log" width="3016" height="1718" data-path="images/docs/evaluate/how-to/prompt-chains/prompt-chain-sheet-filtering.png" />
