From 50c1c1e12d073621fa372d5ece16d66932922af4 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 23 Dec 2010 10:38:43 -0800 Subject: [PATCH] add 'info breakpoints' --- lib/_debugger.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/_debugger.js b/lib/_debugger.js index d8b7c92295c..2ae26ec1004 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -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); Client.prototype.step = function(action, count, cb) { var req = { @@ -334,6 +340,12 @@ function startInterface() { 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)) { c.reqBacktrace(function (bt) { if (/full/.test(cmd)) {