// blog

Debugging "VM Exception: invalid opcode / revert"

When I started learning Solidity, there was nothing more frustrating than running accross "VM Exception: invalid opcode" or "VM Exception: revert" errors. These errors messages are really not helpful.

In this video, I explain you:

  • what are these errors
  • what kind of Solidity code trigger them
  • how to troubleshoot them

Contract triggering invalid opcode and revert errors in Remix, from the video tutorial