From 90d4bb55ec8edb7e29c4eb04665c3264147b56d9 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 19 Oct 2018 15:56:30 -0400 Subject: [PATCH] improve api by adding common methods --- remix-debug/src/cmdline/index.js | 33 +++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/remix-debug/src/cmdline/index.js b/remix-debug/src/cmdline/index.js index 7f6523684d..48658ce863 100644 --- a/remix-debug/src/cmdline/index.js +++ b/remix-debug/src/cmdline/index.js @@ -80,7 +80,6 @@ class CmdLine { return source } - // TODO: is filename really necessary? startDebug(txNumber, filename, cb) { const self = this this.filename = filename @@ -107,6 +106,38 @@ class CmdLine { }) } + stepJumpNextBreakpoint() { + this.debugger.step_manager.stepJumpNextBreakpoint() + } + + stepJumpPreviousBreakpoint() { + this.debugger.step_manager.stepJumpPreviousBreakpoint() + } + + stepOverForward(solidityMode) { + this.debugger.step_manager.stepOverForward(solidityMode) + } + + stepOverBack(solidityMode) { + this.debugger.step_manager.stepOverBack(solidityMode) + } + + stepIntoForward(solidityMode) { + this.debugger.step_manager.stepIntoForward(solidityMode) + } + + stepIntoBack(solidityMode) { + this.debugger.step_manager.stepIntoBack(solidityMode) + } + + currentStep() { + return this.debugger.step_manager.currentStepIndex + } + + unload() { + return this.debugger.unload() + } + displayLocals () { console.dir("= displayLocals") console.dir(this.solidityLocals)