Commit 90d4bb55 authored by Iuri Matias's avatar Iuri Matias

improve api by adding common methods

parent a9790829
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment