Skip to content

EVM opcode: breakpointΒ #201

@axic

Description

@axic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions