|
|
|
@ -11,22 +11,15 @@ function Debugger (options) { |
|
|
|
|
var self = this |
|
|
|
|
this.event = new EventManager() |
|
|
|
|
|
|
|
|
|
this._components = { |
|
|
|
|
sourceHighlighter: sourceHighlighter |
|
|
|
|
} |
|
|
|
|
this._components.registry = globalRegistry |
|
|
|
|
// dependencies
|
|
|
|
|
this._deps = { |
|
|
|
|
offsetToLineColumnConverter: this._components.registry.get('offsettolinecolumnconverter').api, |
|
|
|
|
editor: this._components.registry.get('editor').api, |
|
|
|
|
compiler: this._components.registry.get('compiler').api, |
|
|
|
|
compilersArtefacts: this._components.registry.get('compilersartefacts').api |
|
|
|
|
} |
|
|
|
|
this.debugger = new Ethdebugger( |
|
|
|
|
{ |
|
|
|
|
executionContext: this.executionContext, |
|
|
|
|
this.executionContext = options.executionContext |
|
|
|
|
this.offsetToLineColumnConverter = options.offsetToLineColumnConverter |
|
|
|
|
this.compiler = options.compiler |
|
|
|
|
this.compilerArtefacts = options.compilersArtefacts |
|
|
|
|
|
|
|
|
|
this.debugger = new Ethdebugger({ |
|
|
|
|
executionContext: options.executionContext, |
|
|
|
|
compilationResult: () => { |
|
|
|
|
if (this._deps.compilersArtefacts['__last']) return this._deps.compilersArtefacts['__last'].getData() |
|
|
|
|
if (this.options.compilersArtefacts['__last']) return this.options.compilersArtefacts['__last'].getData() |
|
|
|
|
return null |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|