You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I hope to add a script execution debugger to rust-bitcoinkernel, building on the proof-of-concept in the script_debug branch. It exposes Bitcoin Script interpreter state at each opcode step to Rust callers via a callback. Please feel free to comment on this!
Design
Hooks into EvalScript via a DEBUG_SCRIPT macro in the C++ subtree. At each step, the callback receives the main stack, altstack, raw script bytes, opcode position, conditional execution state (fExec), and script error on failure. On the Rust side this is exposed via a ScriptDebugger type and a trace_verify entry point.