How to check the VM trace using Geth?
I've ran geth with –verbosity 6, and stuff like this gets logged:
I0525 01:26:12.418607 core/vm/vm.go:157] running byte VM b82addc7
I0525 01:26:12.419818 core/vm/vm.go:160] byte VM b82addc7 done. time: 1.196171ms instrc: 539
I0525 01:26:12.419852 core/state_transition.go:258] VM call err: Out of gas
But that is not the VM trace, I take it?
Best Answer
In the recent versions of
geth
, you can use thedebug.traceTransaction(txid)
call to trace your transaction.For example, here is a transaction sending some ethers to The DAO contract:
You can see the same tracing information in the VM-Trace tab in https://live.ether.camp .
EDIT: You will find more debugging functions in Management APIs, including: