Debugging
Debugging on RibbleChain is streamlined with tools like the RibbleChain CLI, Explorer, and tracing utilities. This guide covers techniques for debugging smart contracts, rollup transactions, and sequencer issues on Layer 1 (L1) and Layer 3 (L3) rollups.
Prerequisites
- RibbleChain CLI:
npm install -g ribblechain-cli
. - Access to the RibbleChain Explorer.
- Hardhat or Foundry for smart contract testing.
Debugging Smart Contracts
1. Trace a Transaction
Use the CLI to trace a transaction:
ribblechain-cli debug trace --tx 0xTX_HASH --network testnet