Skip to Content
Mastering Blockchain Programming with Solidity
book

Mastering Blockchain Programming with Solidity

by Jitendra Chittoda
August 2019
Intermediate to advanced
486 pages
13h 52m
English
Packt Publishing
Content preview from Mastering Blockchain Programming with Solidity

Debug transactions

Using Truffle framework, you can debug any transaction with Truffle's debug command. To run truffle in debug mode, there are some requirements that you need to fulfill:

  • If you are running Ganache, it should be running in verbose log mode. However, verbose logs are not much helpful in debugging the transactions manually. Its useful for truffle debug mode to read and parse the logs. You can run ganache-cli with -v flag to run Ganache in verbose log mode.
  • The full contract code should be available.
  • The ID of the transaction that you want to debug should be known. To find out the ID of a transaction that is not working as per your expectations with test cases, you can stop the test case when it fails and can find 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

Mastering Ethereum

Mastering Ethereum

Andreas M. Antonopoulos, Gavin Wood
Complete Cryptocurrency and Blockchain Course | Learn Solidity

Complete Cryptocurrency and Blockchain Course | Learn Solidity

Ravinder Deol, Codestars By Rob Percival, Thomas Wiesner

Publisher Resources

ISBN: 9781839218262Supplemental Content