|
|
@ -12,7 +12,10 @@ function Debugger (id, appAPI, executionContextEvent, editorEvent) { |
|
|
|
this.el.appendChild(this.debugger.render()) |
|
|
|
this.el.appendChild(this.debugger.render()) |
|
|
|
this.appAPI = appAPI |
|
|
|
this.appAPI = appAPI |
|
|
|
this.markers = {} |
|
|
|
this.markers = {} |
|
|
|
this.breakPointManager = new remix.code.BreakpointManager(this.debugger) |
|
|
|
this.breakPointManager = new remix.code.BreakpointManager(this.debugger, (sourceLocation) => { |
|
|
|
|
|
|
|
return this.offsetToLineColumnConverter.offsetToLineColumn(sourceLocation, sourceLocation.file, this.editor, this.compiler.lastCompilationResult.data) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.debugger.setBreakpointManager(this.breakPointManager) |
|
|
|
this.debugger.setBreakpointManager(this.breakPointManager) |
|
|
|
this.breakPointManager.event.register('breakpointHit', (sourceLocation) => { |
|
|
|
this.breakPointManager.event.register('breakpointHit', (sourceLocation) => { |
|
|
|
this.editor.setBreakpoint(this.touchedBreakpoint, 'breakpointUntouched') |
|
|
|
this.editor.setBreakpoint(this.touchedBreakpoint, 'breakpointUntouched') |
|
|
|