Debugging with Sentio
Learn how to install and use the Sentio plugin in BuildBear to debug and analyze smart contract transactions.
What is Sentio?
Sentio is a smart contract debugging tool that gives developers granular insights into contract execution. With deep, line-by-line analysis capabilities, it enables precise identification and resolution of complex blockchain development issues.
What You'll Learn
- How to install and configure the Sentio plugin in a BuildBear sandbox
- How to debug ERC-4337 User Operations
- How to analyze call traces, fund flows, call graphs, and gas usage
Key Features
Comprehensive Transaction Analysis
- Balance Changes: Track token balances across each transaction step.
- Fund Flow: Visualize token flows across contracts.
- Call Trace & Call Graph: Inspect contract call structure and relationships.
- Gas Profiler: Analyze gas usage by function and trace for optimization.
- State & Events: See contract state changes and emitted events.
Visual Debugging Interface
- Graphical dashboards simplify blockchain data interpretation.
- Step-through debugging (Step-Into, Step-Over, Step-Out)
- Direct access to opcode traces, inputs, and gas reports
Step 1: Set Up Your Sandbox
- Create or open an existing BuildBear sandbox.
- Navigate to the Plugins tab.
- Find and install the Sentio Plugin.
After installation, you'll be able to see "View Tracer" or "Debug with Sentio" buttons in your sandbox transaction explorer.
Step 2: Analyze a Transaction
What is a User Operation?
A UserOp (User Operation) in ERC-4337 allows users to initiate transactions through a smart contract (EntryPoint) instead of a traditional wallet. This enables advanced functionality like sponsored transactions and modular account logic.
We will debug a UserOp on BuildBear to explore Sentio's capabilities.
Exploring Sentio Tabs
Fund Flow
Shows sender, receiver, intermediate contracts, and how tokens moved during the transaction.
Call Trace
Line-by-line breakdown of smart contract execution paths.
Call Graph
Graphical representation of function calls across different contracts.
Gas Profiler
Provides gas limit, actual usage, and function-level breakdowns.
Debugger
Detailed opcode view with step-through capabilities. Inspect sender/receiver, calldata, opcodes, and gas metrics.
Contracts
List of all smart contracts that interacted in the transaction.
Events
Event logs emitted during execution.
State
Displays state changes in storage slots across contracts and EOAs.
Conclusion
Sentio enhances your debugging workflow with deep introspection tools for smart contracts. From fund flow to opcode-level debugging, it gives developers everything they need to build with confidence.