From 7b3a21b9af3988513a31cb25f61c9adcbca72026 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 6 Feb 2017 11:01:47 +0100 Subject: [PATCH] make breakpoint manager use of lineconverter --- src/app/debugger.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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')