Skip to content

Commit

Permalink
feat: add debug-mode to in-memory-node (#217)
Browse files Browse the repository at this point in the history
<!--

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)
  • Loading branch information
MexicanAce authored Sep 11, 2024
1 parent 2a723e4 commit e475df2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions content/00.build/60.test-and-debug/20.in-memory-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,23 @@ As a result, an L1 RPC is not available.

---

## Debug Transactions & Smart Contracts

The default configuration of `era_test_node` displays minimal data in the terminal to keep the output clean.
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`).

```bash
era_test_node -d
```

This will:

- Show the full call stack and each call's output for transactions
- Show more details about the breakdown of gas cost per transaction
- Resolve known hashes into human-readable strings

---

## Fork a network

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

0 comments on commit e475df2

Please sign in to comment.