Skip to Content
Ethereum Cookbook
book

Ethereum Cookbook

by Manoj P R
August 2018
Intermediate to advanced
404 pages
11h 19m
English
Packt Publishing
Content preview from Ethereum Cookbook

Debugging a smart contract using Truffle

Truffle provides a rich debugging interface, which allows you to debug the transactions against your contract. This is very similar to existing command-line debuggers for other development environments. The following features are supported by the Truffle debugger:

  • Code stepping: Over, into, out, next, instruction, and so on
  • Variable inspection: Stack, memory, and storage
  • Breakpoints
  • Watch expressions
  • Custom expression evaluation
  • Current code location, including the address of the running contract

Unlike other tools and methods, while debugging an Ethereum transaction, you are not running the code in real time. While debugging a contract, you are stepping through the historical execution of a transaction. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Ethereum Dapps

Building Ethereum Dapps

Roberto Infante
Ethereum For Dummies

Ethereum For Dummies

Michael G. Solomon

Publisher Resources

ISBN: 9781789133998Supplemental Content