Skip to content

Commit

Permalink
use getSourceLocationFromVMTraceIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Aug 22, 2018
1 parent 74a8625 commit 452d1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/debugger/debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function Debugger (container, sourceHighlighter, localRegistry) {
if (self._deps.compiler.lastCompilationResult) {
self.debugger.traceManager.getCurrentCalledAddressAt(index, (error, address) => {
if (error) return console.log(error)
self.debugger.callTree.sourceLocationTracker.getSourceLocationFromInstructionIndex(address, index, self._deps.compiler.lastCompilationResult.data.contracts, function (error, rawLocation) {
self.debugger.callTree.sourceLocationTracker.getSourceLocationFromVMTraceIndex(address, index, self._deps.compiler.lastCompilationResult.data.contracts, function (error, rawLocation) {
if (!error && self._deps.compiler.lastCompilationResult && self._deps.compiler.lastCompilationResult.data) {
var lineColumnPos = self._deps.offsetToLineColumnConverter.offsetToLineColumn(rawLocation, rawLocation.file, self._deps.compiler.lastCompilationResult.source.sources)
self._components.sourceHighlighter.currentSourceLocation(lineColumnPos, rawLocation)
Expand Down

0 comments on commit 452d1b7

Please sign in to comment.