Skip to main content

Ethereum debugger

Project description

Buguet

Ethereum Debugger (for smart contracts in Solidity).

Prerequisites

python3

Ethereum node running in archive mode with debug api. E.g. geth:

  geth --rpc --rpcapi eth,debug --gcmode archive

By default localhost:8545 endpoint is used.

Compiled contracts in format produced by solc with --combined-json option. Each contract called in transaction should be compiled with the same solidity version as it deployed on the blockchain (multiple versions can be used for one transaction).

Installation

pip install buguet

Usage

Basic usage is:

buguet contract1.json,contract2.json transaction_id

See buguet --help for all options.

Commands

    help (h)                Print help
    step (s)                Step into function
    next (n)                Next line in current frame
    stepout (so)            Step out of current function
    continue (c)            Continue execution
    break {file}:{line}     Set breakpoint
    breakpoints             List breakpoints
    unbreak {idx}           Remove breakpoint
    stack                   Print current stack
    mem                     Print memory
    op                      Print and execute one instruction
    {expr}                  Evaluate expression

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

buguet-1.0.1.tar.gz (14.3 kB view hashes)

Uploaded Source

Built Distribution

buguet-1.0.1-py3-none-any.whl (28.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page