Tham khảo API
Ethereum API
Core API
Hướng dẫn
Ethereum/Debug API

Ethereum Debug Methods

This section documents Ethereum's powerful debug API methods that provide advanced capabilities for blockchain analysis, transaction debugging, and detailed state inspection. These methods are essential for developers building sophisticated Ethereum applications, tools, and analytics.

Debug Methods Overview

Debug methods allow you to perform detailed analysis of blockchain data, trace transaction execution at the EVM level, inspect state changes, and diagnose issues with transactions or smart contracts. These advanced inspection capabilities are crucial for developers working on complex smart contracts or building analytical tools.

Cuộc gọi phương thứcHTTP!WS!
debug_getBadBlocks
Trả về danh sách các 'khối xấu' gần đây mà máy khách đã thấy trên mạng
debug_storageRangeAt
Trả về phạm vi lưu trữ của hợp đồng tại một chiều cao khối cụ thể
debug_traceBlock
Trả về tất cả các dấu vết được tạo tại một khối nhất định
debug_traceBlockByHash
Trả về tất cả các dấu vết được tạo tại một khối được chỉ định bởi hash của nó
debug_traceBlockByNumber
Trả về tất cả các dấu vết được tạo tại một khối được chỉ định bởi số của nó
debug_traceCall
Thực hiện một cuộc gọi tin nhắn mới và trả về các dấu vết được tạo trong quá trình thực thi
debug_traceTransaction
Trả về tất cả các dấu vết của một giao dịch nhất định

The debug namespace provides methods for:

  • Tracing transaction execution with granular control over tracing parameters
  • Analyzing block execution with different trace types (e.g., call tracer, 4byte tracer)
  • Inspecting contract storage and state
  • Retrieving information about bad blocks
  • Analyzing call and execution contexts

These methods typically provide more detailed output than standard API methods, making them valuable for deep debugging and analysis tasks.

See also

Giúp chúng tôi trở nên tốt hơn!
Chia sẻ trang này và giúp chúng tôi tạo ra sản phẩm tốt hơn cho bạn.