Solidity REPL
Debugging & errors

Require message

Trigger a failed condition and jump back to its source line.

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 require message so its input, result, and state changes stay easy to compare.

Solidity to run

uint256 balance = 3
require(balance >= 10, "balance too low")

What to expect

The failed condition returns the “balance too low” reason and identifies the source line that triggered it.

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