pull/3094/head
Iuri Matias 6 years ago committed by yann300
parent b40b822ba4
commit 346e3b327c
  1. 6
      src/app/debugger/debugger.js

@ -65,7 +65,7 @@ function Debugger (sourceHighlighter) {
})
this.debugger.event.register('traceUnloaded', this, function () {
self._components.sourceHighlighter.currentSourceLocation(null)
self.sourceHighlighter.currentSourceLocation(null)
self.event.trigger('debuggerStatus', [false])
})
@ -86,9 +86,9 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) {
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)
self.sourceHighlighter.currentSourceLocation(lineColumnPos, rawLocation)
} else {
self._components.sourceHighlighter.currentSourceLocation(null)
self.sourceHighlighter.currentSourceLocation(null)
}
})
})

Loading…
Cancel
Save