-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
Description
Motivation
To speed up debugging, if a breakpoint is expected there is no need to step through execution, but can safely stop at the breakpoint.
Specification
A new opcode, BREAKPOINT
is introduced at 0xfd
.
Option 1:
A virtual machine if run in debugging mode, should stop execution when encountering this instruction, otherwise it should ignore it.
Option 2:
It stays as an invalid instruction in a deployed contract, but special debugging EVM implementations are allowed to support it.
Alternatively, another good name is DEBUG
.
GNSPS, beaugunderson, insipx, cat-j and iamdefinitelyahuman