Skip to main content

Module debug_recorder

Module debug_recorder 

Source
Expand description

Records the debugger’s opcode steps straight into a SolDB step table.

Re-exportsΒ§

use alloy_primitives::U256; πŸ”’
use evm2::EvmTypes; πŸ”’
use evm2::Inspector; πŸ”’
use evm2::evm::JournalEntry; πŸ”’
use evm2::interpreter::InstrStop; πŸ”’
use evm2::interpreter::Interpreter; πŸ”’
use evm2::interpreter::Message; πŸ”’
use evm2::interpreter::MessageResult; πŸ”’
use evm2::interpreter::op; πŸ”’
use evm2::interpreter::opcode::OpCode; πŸ”’
use foundry_evm_traces::debug::DebugRecording; πŸ”’
use foundry_evm_traces::debug::DebugStepSink; πŸ”’
use foundry_evm_traces::debug::RecordedFrame; πŸ”’
use foundry_evm_traces::debug::StepConverter; πŸ”’
use foundry_evm_traces::debug::step_record; πŸ”’
use soldb_core::EvmWord; πŸ”’
use soldb_core::StepRecord; πŸ”’
use soldb_core::StepTable; πŸ”’
use std::fmt; πŸ”’
use std::sync::Arc; πŸ”’

StructsΒ§

DebugRecorder
Records every opcode step of the debugged calls into a [StepTable], with the steps that each call and creation spans.
OpenFrame πŸ”’
A frame that runs now.
PendingStep πŸ”’
What a step records when it starts.

ConstantsΒ§

STORAGE_INPUTS πŸ”’
The most stack words the storage opcodes read: SSTORE and TSTORE read the slot and the value.

FunctionsΒ§

changed πŸ”’
The range where new differs from old, which has the same length.
copy_steps πŸ”’
Appends steps of source to target, deeper levels deeper.
memory_write πŸ”’
The destination a memory-writing opcode takes from its pre-execution stack. Memory-reading opcodes can expand memory but leave all new bytes zero.