Commit 1b097bc6 authored by aniket-engg's avatar aniket-engg Committed by Aniket

debugger src updated

parent 36e91d0b
const remixLib = require('@remix-project/remix-lib')
const EventManager = require('../eventManager') const EventManager = require('../eventManager')
const ui = remixLib.helpers.ui
const StorageResolver = require('../storage/storageResolver') const StorageResolver = require('../storage/storageResolver')
const StorageViewer = require('../storage/storageViewer') const StorageViewer = require('../storage/storageViewer')
import { helpers } from '@remix-project/remix-lib'
const DebuggerSolidityState = require('./solidityState') import { DebuggerSolidityState } from './solidityState'
const DebuggerSolidityLocals = require('./solidityLocals') import { DebuggerSolidityLocals } from './solidityLocals'
const ui = helpers.ui
class VmDebuggerLogic {
export class VmDebuggerLogic {
event
debugger
stepManager
_traceManager
_codeManager
_solidityProxy
_callTree
storageResolver
tx
debuggerSolidityState
debuggerSolidityLocals
address
traceLength
addresses
constructor (_debugger, tx, _stepManager, _traceManager, _codeManager, _solidityProxy, _callTree) { constructor (_debugger, tx, _stepManager, _traceManager, _codeManager, _solidityProxy, _callTree) {
this.event = new EventManager() this.event = new EventManager()
...@@ -247,5 +261,3 @@ class VmDebuggerLogic { ...@@ -247,5 +261,3 @@ class VmDebuggerLogic {
} }
} }
module.exports = VmDebuggerLogic
...@@ -2,10 +2,9 @@ ...@@ -2,10 +2,9 @@
const Ethdebugger = require('../Ethdebugger') const Ethdebugger = require('../Ethdebugger')
const EventManager = require('../eventManager') const EventManager = require('../eventManager')
const traceHelper = require('../trace/traceHelper') const traceHelper = require('../trace/traceHelper')
const BreakpointManager = require('../code/breakpointManager') import { BreakpointManager } from '../code/breakpointManager'
import { DebuggerStepManager } from './stepManager'
const StepManager = require('./stepManager') import { VmDebuggerLogic } from './VmDebugger'
const VmDebuggerLogic = require('./VmDebugger')
export class Debugger { export class Debugger {
...@@ -135,7 +134,7 @@ export class Debugger { ...@@ -135,7 +134,7 @@ export class Debugger {
} }
debugTx (tx, loadingCb) { debugTx (tx, loadingCb) {
this.step_manager = new StepManager(this.debugger, this.debugger.traceManager) this.step_manager = new DebuggerStepManager(this.debugger, this.debugger.traceManager)
this.debugger.codeManager.event.register('changed', this, (code, address, instIndex) => { this.debugger.codeManager.event.register('changed', this, (code, address, instIndex) => {
this.debugger.callTree.sourceLocationTracker.getValidSourceLocationFromVMTraceIndex(address, this.step_manager.currentStepIndex, this.debugger.solidityProxy.contracts).then((sourceLocation) => { this.debugger.callTree.sourceLocationTracker.getValidSourceLocationFromVMTraceIndex(address, this.step_manager.currentStepIndex, this.debugger.solidityProxy.contracts).then((sourceLocation) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment