From 896440614127a0af5c10ea7592c8398009583d3d Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 9 Jan 2017 14:27:49 +0100 Subject: [PATCH] apply new remix api --- src/app/debugger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)