break;
case 'listbreakpoints':
- result = 'breakpoints: (' + body.breakpoints.length + ')';
- for (var i = 0; i < body.breakpoints.length; i++) {
+ result = 'breakpoints: (' + body.breakpoints.length + ')';
+ for (var i = 0; i < body.breakpoints.length; i++) {
var breakpoint = body.breakpoints[i];
result += '\n id=' + breakpoint.number;
result += ' type=' + breakpoint.type;
result += ' condition=' + breakpoint.condition;
}
result += ' hit_count=' + breakpoint.hit_count;
- }
- details.text = result;
- break;
+ }
+ details.text = result;
+ break;
case 'backtrace':
if (body.totalFrames == 0) {
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()
- }
-
+ 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();
+ description.script_id = break_point.script_id();
} else {
description.type = 'scriptName';
description.script_name = break_point.script_name();
}
- array.push(description);
+ array.push(description);
}
response.body = { breakpoints: array }