Solidity REPL
Debugging & errors

Division by zero

See a Solidity panic translated into a readable result.

Solidity 0.8.36REPL modeExpected error

Why use this example

Use this pattern to reproduce a failure or follow an execution from Solidity source into calls and EVM opcodes. The entry isolates division by zero so its input, result, and state changes stay easy to compare.

Solidity to run

uint256 divisor = 0
uint256(100) / divisor

What to expect

The division produces Solidity’s division-by-zero panic and leaves accepted replay history unchanged.

Continue the investigation

Change a value, add another expression, or open Inspect after the run. Accepted entries remain available to the next entry, and the clean replay keeps the complete result reproducible.

Read about debugging Execution diagnosis