| Index: src/debug-debugger.js
|
| diff --git a/src/debug-debugger.js b/src/debug-debugger.js
|
| index e94cee41d216901b12a1e9a9a1e54f21f925be1e..369a02c446db4136ce5c32c8388483b5542e16d4 100644
|
| --- a/src/debug-debugger.js
|
| +++ b/src/debug-debugger.js
|
| @@ -1266,6 +1266,8 @@ DebugCommandProcessor.prototype.processDebugJSONRequest = function(json_request)
|
| this.clearBreakPointRequest_(request, response);
|
| } else if (request.command == 'clearbreakpointgroup') {
|
| this.clearBreakPointGroupRequest_(request, response);
|
| + } else if (request.command == 'listbreakpoints') {
|
| + this.listBreakpointsRequest_(request, response);
|
| } else if (request.command == 'backtrace') {
|
| this.backtraceRequest_(request, response);
|
| } else if (request.command == 'frame') {
|
| @@ -1581,6 +1583,35 @@ DebugCommandProcessor.prototype.clearBreakPointRequest_ = function(request, resp
|
| response.body = { breakpoint: break_point }
|
| }
|
|
|
| +DebugCommandProcessor.prototype.listBreakpointsRequest_ = function(request, response) {
|
| + var array = [];
|
| + for (var i = 0; i < script_break_points.length; i++) {
|
| + var break_point = script_break_points[i];
|
| +
|
| + var description = {
|
| + number: break_point.number(),
|
| + line: break_point.line(),
|
| + column: break_point.column(),
|
| + groupId: break_point.groupId(),
|
| + hit_count: break_point.hit_count(),
|
| + active: break_point.active(),
|
| + condition: break_point.condition(),
|
| + ignoreCount: break_point.ignoreCount()
|
| + }
|
| +
|
| + if (break_point.type() == Debug.ScriptBreakPointType.ScriptId) {
|
| + description.type = 'scriptId';
|
| + description.script_id = break_point.script_id();
|
| + } else {
|
| + description.type = 'scriptName';
|
| + description.script_name = break_point.script_name();
|
| + }
|
| + array.push(description);
|
| + }
|
| +
|
| + response.body = { breakpoints: array }
|
| +}
|
| +
|
|
|
| DebugCommandProcessor.prototype.backtraceRequest_ = function(request, response) {
|
| // Get the number of frames.
|
|
|