From af2c763f80b4862479eef5705c2c8234f4bd0730 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 11 Oct 2018 10:51:50 -0400 Subject: [PATCH] improve displaying current step --- remix-debug/src/cmdline/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/remix-debug/src/cmdline/index.js b/remix-debug/src/cmdline/index.js index dabcc358c5..6cacf83974 100644 --- a/remix-debug/src/cmdline/index.js +++ b/remix-debug/src/cmdline/index.js @@ -48,12 +48,13 @@ class CmdLine { let line line = self.compilation.lastCompilationResult.source.sources['browser/ballot.sol'].content.split("\n")[lineColumnPos.start.line - 1] - console.dir(line) + console.dir(" " + (lineColumnPos.start.line - 1) + " " + line) line = self.compilation.lastCompilationResult.source.sources['browser/ballot.sol'].content.split("\n")[lineColumnPos.start.line] - console.dir(line) - console.dir("^^^^^^^^^^^^^^^ ") + console.dir("=> " + lineColumnPos.start.line + " " + line) line = self.compilation.lastCompilationResult.source.sources['browser/ballot.sol'].content.split("\n")[lineColumnPos.start.line + 1] - console.dir(line) + console.dir(" " + (lineColumnPos.start.line + 1) + " " + line) + line = self.compilation.lastCompilationResult.source.sources['browser/ballot.sol'].content.split("\n")[lineColumnPos.start.line + 2] + console.dir(" " + (lineColumnPos.start.line + 2) + " " + line) }); self.debugger.step_manager.event.register('stepChanged', (stepIndex) => {