Watch / The challenge of implementing Solidity stack traces

The challenge of implementing Solidity stack traces

  • YouTube
  • IPFS
  • Swarm
  • Details

The challenge of implementing Solidity stack traces

Duration: 00:24:30

Speaker: Patricio Palladino

Type: Breakout

Expertise: Advanced

Event: Devcon 5

Date: Oct 2019

Debugging is an unavoidable phase of the software development cycle, and the most frustrating and productivity wasting part of developing smart contracts. The essential tools that a programmer would use to debug code manually in a mature platform are missing or unstable in Ethereum or are unstable. These are easy debug logging (e.g. console.log) and stack traces. In addition, smart contracts development presents extra challenges, like testing code and smart contract code being written in different programming languages. In this presentation, we'll shed some light on how stack traces work in other platforms and the challenges we had to solve for building them for Solidity in Buidler. These include identifying the code behind each contract address, identifying the functions in the stack, recognizing Solidity's compilation patterns to improve error messages, and how to display them from your JavaScript tests.
  • Related