Skip to content

Commit e475df2

Browse files
authored
feat: add debug-mode to in-memory-node (#217)
<!-- Thank you for contributing to the ZKsync Docs! Before submitting the PR, please make sure you do the following: - Update your PR title to follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) - Read the [Contributing Guide](https://github.com/matter-labs/zksync-docs/blob/main/CONTRIBUTING.md). - Understand our [Code of Conduct](https://github.com/matter-labs/zksync-docs/blob/main/CODE_OF_CONDUCT.md) - Please delete any unused parts of the template when submitting your PR --> # Description Add `Debug Transactions & Smart Contracts` to In-Memory Node docs ![image](https://github.com/user-attachments/assets/86caf3f7-4e8c-4bd7-95db-401890e28732)
1 parent 2a723e4 commit e475df2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

content/00.build/60.test-and-debug/20.in-memory-node.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,23 @@ As a result, an L1 RPC is not available.
8888

8989
---
9090

91+
## Debug Transactions & Smart Contracts
92+
93+
The default configuration of `era_test_node` displays minimal data in the terminal to keep the output clean.
94+
However, if you are having issues with your smart contracts and need more details why a transaction is failing, try enabling `--debug-mode` (or just `-d`).
95+
96+
```bash
97+
era_test_node -d
98+
```
99+
100+
This will:
101+
102+
- Show the full call stack and each call's output for transactions
103+
- Show more details about the breakdown of gas cost per transaction
104+
- Resolve known hashes into human-readable strings
105+
106+
---
107+
91108
## Fork a network
92109

93110
To fork the mainnet, use the following command, replacing `[network]` with either `mainnet` or `sepolia-testnet`:

0 commit comments

Comments
 (0)