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

# Debug and Trace | Monad

> The debug and trace JSON RPC methods allow developers to trace transaction execution and analyze contract calls on Monad with detailed step-by-step information.

Tracing and debugging on the Monad blockchain can be done by using the following methods:

> [card] [debug\_traceTransaction](https://docs.chainstack.com/reference/monad-tracetransaction.md)

> [card] [debug\_traceBlockByNumber](https://docs.chainstack.com/reference/monad-traceblockbynumber.md)

> [card] [debug\_traceBlockByHash](https://docs.chainstack.com/reference/monad-traceblockbyhash.md)

> [card] [debug\_traceCall](https://docs.chainstack.com/reference/monad-tracecall.md)

These methods support multiple tracers including:

* **callTracer** — traces all calls made during execution
* **prestateTracer** — returns the state accessed during execution
* **prestateTracer** with `diffMode: true` — returns the state changes made during execution

This information can be used for:

* **Debugging** — understand why transactions failed or behaved unexpectedly.
* **Security analysis** — analyze contract interactions and fund flows.
* **Gas optimization** — identify expensive operations in contract execution.
* **Forensics** — trace transaction paths for audit and compliance.
