|
@ -225,6 +225,12 @@ Client.prototype.reqContinue = function(cb) { |
|
|
}); |
|
|
}); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Client.prototype.listbreakpoints = function(cb) { |
|
|
|
|
|
this.req({ command: 'listbreakpoints' }, function (res) { |
|
|
|
|
|
if (cb) cb(res); |
|
|
|
|
|
}); |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
// c.next(1, cb);
|
|
|
// c.next(1, cb);
|
|
|
Client.prototype.step = function(action, count, cb) { |
|
|
Client.prototype.step = function(action, count, cb) { |
|
|
var req = { |
|
|
var req = { |
|
@ -334,6 +340,12 @@ function startInterface() { |
|
|
term.prompt(); |
|
|
term.prompt(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} else if (/info +breakpoints/.test(cmd)) { |
|
|
|
|
|
c.listbreakpoints(function (res) { |
|
|
|
|
|
console.log(res); |
|
|
|
|
|
term.prompt(); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
} else if (/^backtrace/.test(cmd) || /^bt/.test(cmd)) { |
|
|
} else if (/^backtrace/.test(cmd) || /^bt/.test(cmd)) { |
|
|
c.reqBacktrace(function (bt) { |
|
|
c.reqBacktrace(function (bt) { |
|
|
if (/full/.test(cmd)) { |
|
|
if (/full/.test(cmd)) { |
|
|