0.1.1 • Published 6 years ago

ethereum-debugger v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

ethereum-debugger

A standalone debugger for Ethereum contracts. Give it a transaction hash, the output from solcjs, and the sources for the contracts, and it'll produce a single javacript-enabled HTML file to allow you to step through contract execution.

Installing

npm install ethereum-debugger

Using Programatically

import {dumpTransactionTrace} from 'ethereum-debugger'

var txHash = doSomeStuff()

dumpTransactionTrace(
  txHash,
  web3.currentProvider,
  {
    solcOutput: outputFromSolcJs, // The output from running solc-js - your build framework may save this as json somewhere
    sources: {'MyContract.sol': 'pragma solidity ...'}, // An object mapping source file names to their contents - if not present, will use metadata from solcOutput
    findImport: findImport // Optional, but useful if you used solc-js's findImports functionality
  },
  'debug/' + txHash + '.html' // Where to save the new file
)

Using from the CLI

Coming Soon!

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago