make breakpoint manager use of lineconverter

pull/1/head
yann300 8 years ago
parent ed1777757e
commit 7b3a21b9af
  1. 5
      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')

Loading…
Cancel
Save