ociqzkzg
4 months ago  Karma: 416
How can I debug my smart contract?

How can I debug my smart contract?

en
solidity
ociqzkzg
4 months ago  Karma: 416
How can I debug my smart contract?

How can I debug my smart contract?

en
solidity

3 ANSWERS
qantumtbfmir
4 months ago Karma: 278

There are several good options available:
- TestRPC, a limited client designed for automated testing.
- Truffle comes with an integrated debugger. Here is good tutorial: https://truffleframework.com/tutorials/debugging-a-smart-contract

There are several good options available:
- TestRPC, a limited client designed for automated testing.
- Truffle comes with an integrated debugger. Here is good tutorial: https://truffleframework.com/tutorials/debugging-a-smart-contract

guptasiddharth1212
4 months ago Karma: 0

Writing a test case and running it would be the best way to debug the smart contract or you could query those real time using the console which would help you with the exact transactions happening.

Writing a test case and running it would be the best way to debug the smart contract or you could query those real time using the console which would help you with the exact transactions happening.

ennvlxkm
4 months ago Karma: 761

A simple alternative is to use "allEvents" callback in web3.js.

A simple alternative is to use "allEvents" callback in web3.js.

Earn tokens by posting and answering questions about blockchain!
Karma to eth
YOUR ANSWER