blocktorch
  • Overview
    • Introduction
    • Install/Setup
    • Quickstart
  • Concepts
    • Data Sources
      • EVM Chains
      • Roll-ups
      • Local forks
        • Setup Hardhat fork
        • Setup managed Hardhat Fork
        • Hardhat forking API
      • Smart Contracts
        • Adding smart contracts
      • Custom Event Data
      • Oracles
      • Account Abstraction modules
        • Navigating the AA Explorer
      • Decentralized Datastorage
      • React Frontends
    • Querying data
    • Telemetry
  • Use cases
    • Searching
      • Logs
        • Log Details
      • Sharing search results
    • Monitoring
      • Building monitors
      • Alerting
    • Tracing
      • Stack traces
      • End-2-End Traces
    • Dashboarding
      • Pre-made dashboards
      • Custom graphs
    • Collaborating
      • Inviting others
      • Sharing data
    • Debugging
      • Step debugger
    • Benchmarking
    • Managing incidents
      • Troubelshooting
      • Post mortem
    • Predicting
  • Ressources
    • Demo videos
    • FAQs
  • Contribute
    • Open Source projects
Powered by GitBook
On this page
  1. Use cases

Debugging

PreviousSharing dataNextStep debugger

Last updated 1 year ago

Debugging smart contract transactions is an indispensable step in ensuring their reliability and security before they are deployed on the blockchain as well as understanding them thoroughly in production when planning and developing the next version of the protocol.

When a transaction fails or behaves unexpectedly, developers need to trace the , inspect state changes, and at each step. Blocktorch's and provide environments where developers can simulate transactions, dig into call stacks, and interact with the contract's state. Furthermore, incorporating comprehensive logging (meaning adding relevant events that are emitted) within the contract can significantly aid in identifying issues quickly.

As smart contracts handle valuable assets and sensitive operations, thorough debugging is paramount to maintaining trust and functionality in decentralized applications.

execution flow
examine gas consumption
local fork feature
step debugger