move vmdebugger call from vmbugger to debuggerUI

pull/1/head
Iuri Matias 6 years ago committed by yann300
parent ee5dc0a491
commit fd29e7739d
  1. 5
      src/app/debugger/debuggerUI.js
  2. 6
      src/app/debugger/debuggerUI/VmDebugger.js

@ -9,6 +9,8 @@ var remixLib = require('remix-lib')
var executionContext = remixLib.execution.executionContext
var traceHelper = remixLib.helpers.trace
var VmDebuggerLogic = require('./VmDebugger')
class DebuggerUI {
constructor (container) {
@ -114,7 +116,8 @@ class DebuggerUI {
this.debugger_ui.stepManager = this.stepManager
this.debugger_ui.vmDebugger = new VmDebugger(this.debugger_ui, this.transactionDebugger.debugger.traceManager, this.transactionDebugger.debugger.codeManager, this.transactionDebugger.debugger.solidityProxy, this.transactionDebugger.debugger.callTree)
this.vmDebuggerLogic = new VmDebuggerLogic(this.debugger_ui, this.transactionDebugger.debugger.traceManager, this.transactionDebugger.debugger.codeManager, this.transactionDebugger.debugger.solidityProxy, this.transactionDebugger.debugger.callTree)
this.debugger_ui.vmDebugger = new VmDebugger(this.vmDebuggerLogic)
this.debugger_ui.andAddVmDebugger()
this.transactionDebugger.debugger.debug(tx)

@ -14,8 +14,6 @@ var SolidityLocals = require('./vmDebugger/SolidityLocals')
var FullStoragesChangesPanel = require('./vmDebugger/FullStoragesChanges')
var DropdownPanel = require('./vmDebugger/DropdownPanel')
var VmDebuggerLogic = require('../VmDebugger')
var css = csjs`
.asmCode {
float: left;
@ -28,11 +26,11 @@ var css = csjs`
}
`
function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _callTree) {
function VmDebugger (vmDebuggerLogic) {
var self = this
this.view
this.vmDebuggerLogic = new VmDebuggerLogic(_parentUI, _traceManager, _codeManager, _solidityProxy, _callTree)
this.vmDebuggerLogic = vmDebuggerLogic
this.asmCode = new CodeListView()
this.vmDebuggerLogic.event.register('codeManagerChanged', this.asmCode.changed.bind(this.asmCode))

Loading…
Cancel
Save