diff --git a/src/app/debugger.js b/src/app/debugger.js index 2da026e869..8b5fc5d498 100644 --- a/src/app/debugger.js +++ b/src/app/debugger.js @@ -12,7 +12,10 @@ function Debugger (id, appAPI, executionContextEvent, editorEvent) { this.el.appendChild(this.debugger.render()) this.appAPI = appAPI 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.breakPointManager.event.register('breakpointHit', (sourceLocation) => { this.editor.setBreakpoint(this.touchedBreakpoint, 'breakpointUntouched')