Commit 7b3a21b9 authored by yann300's avatar yann300

make breakpoint manager use of lineconverter

parent ed177775
......@@ -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')
......
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