diff --git a/src/app/debugger.js b/src/app/debugger.js index 742436d1c4..a03bb1df29 100644 --- a/src/app/debugger.js +++ b/src/app/debugger.js @@ -36,7 +36,7 @@ function Debugger (id, editor, compiler, executionContextEvent, switchToFile, of // register selected code item, highlight the corresponding source location this.debugger.codeManager.event.register('changed', this, function (code, address, index) { if (self.compiler.lastCompilationResult) { - this.debugger.sourceLocationTracker.getSourceLocation(address, index, self.compiler.lastCompilationResult.data.contracts, function (error, rawLocation) { + this.debugger.callTree.sourceLocationTracker.getSourceLocationFromInstructionIndex(address, index, self.compiler.lastCompilationResult.data.contracts, function (error, rawLocation) { if (!error) { var lineColumnPos = self.offsetToLineColumnConverter.offsetToLineColumn(rawLocation, rawLocation.file, self.editor, self.compiler.lastCompilationResult.data) self.highlight(lineColumnPos, rawLocation)