pull/7/head
Iuri Matias 6 years ago
parent 7fee4f368a
commit 0d2d4055c4
  1. 2
      remix-debug/src/Ethdebugger.js
  2. 10
      remix-debug/src/debugger/debugger.js

@ -13,7 +13,6 @@ var remixLib = require('remix-lib')
var TraceManager = remixLib.trace.TraceManager
var CodeManager = remixLib.code.CodeManager
var traceHelper = remixLib.helpers.trace
// var executionContext = remixLib.execution.executionContext
var EventManager = remixLib.EventManager
/**
@ -33,7 +32,6 @@ function Ethdebugger (opts) {
this.opts = opts || {}
if (!this.opts.compilationResult) this.opts.compilationResult = () => { return null }
// this.executionContext = opts.executionContext || executionContext
this.web3 = opts.web3
this.event = new EventManager()

@ -20,7 +20,6 @@ function Debugger (options) {
this.compiler = options.compiler
this.debugger = new Ethdebugger({
// executionContext: this.executionContext,
web3: this.executionContext.web3,
compilationResult: () => {
var compilationResult = this.compiler.lastCompilationResult
@ -43,11 +42,6 @@ function Debugger (options) {
this.debugger.setBreakpointManager(this.breakPointManager)
this.executionContext.event.register('contextChanged', this, function (context) {
// TODO: was already broken
// self.switchProvider(context)
})
this.debugger.event.register('newTraceLoaded', this, function () {
self.event.trigger('debuggerStatus', [true])
})
@ -66,8 +60,6 @@ function Debugger (options) {
this.switchProvider(this.executionContext.getProvider())
}
Debugger.prototype.addProvider = function (type, obj) {
this.web3Providers.addProvider(type, obj)
this.event.trigger('providerAdded', [type])
@ -93,8 +85,6 @@ Debugger.prototype.switchProvider = function (type) {
})
}
Debugger.prototype.registerAndHighlightCodeItem = function (index) {
const self = this
// register selected code item, highlight the corresponding source location

Loading…
Cancel
Save