improve api by adding common methods

pull/7/head
Iuri Matias 6 years ago
parent a9790829d6
commit 90d4bb55ec
  1. 33
      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)

Loading…
Cancel
Save