Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: src/debug-debugger.js

Issue 2132003: Remove tabs (Closed)
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/d8.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 // Clear break point. 1579 // Clear break point.
1580 Debug.clearBreakPoint(break_point); 1580 Debug.clearBreakPoint(break_point);
1581 1581
1582 // Add the cleared break point number to the response. 1582 // Add the cleared break point number to the response.
1583 response.body = { breakpoint: break_point } 1583 response.body = { breakpoint: break_point }
1584 } 1584 }
1585 1585
1586 DebugCommandProcessor.prototype.listBreakpointsRequest_ = function(request, resp onse) { 1586 DebugCommandProcessor.prototype.listBreakpointsRequest_ = function(request, resp onse) {
1587 var array = []; 1587 var array = [];
1588 for (var i = 0; i < script_break_points.length; i++) { 1588 for (var i = 0; i < script_break_points.length; i++) {
1589 » var break_point = script_break_points[i]; 1589 var break_point = script_break_points[i];
1590 » 1590
1591 » var description = { 1591 var description = {
1592 » number: break_point.number(), 1592 number: break_point.number(),
1593 » line: break_point.line(), 1593 line: break_point.line(),
1594 » column: break_point.column(), 1594 column: break_point.column(),
1595 » groupId: break_point.groupId(), 1595 groupId: break_point.groupId(),
1596 » hit_count: break_point.hit_count(), 1596 hit_count: break_point.hit_count(),
1597 » active: break_point.active(), 1597 active: break_point.active(),
1598 » condition: break_point.condition(), 1598 condition: break_point.condition(),
1599 » ignoreCount: break_point.ignoreCount() 1599 ignoreCount: break_point.ignoreCount()
1600 » } 1600 }
1601 » 1601
1602 if (break_point.type() == Debug.ScriptBreakPointType.ScriptId) { 1602 if (break_point.type() == Debug.ScriptBreakPointType.ScriptId) {
1603 description.type = 'scriptId'; 1603 description.type = 'scriptId';
1604 » description.script_id = break_point.script_id(); 1604 description.script_id = break_point.script_id();
1605 } else { 1605 } else {
1606 description.type = 'scriptName'; 1606 description.type = 'scriptName';
1607 description.script_name = break_point.script_name(); 1607 description.script_name = break_point.script_name();
1608 } 1608 }
1609 » array.push(description); 1609 array.push(description);
1610 } 1610 }
1611 1611
1612 response.body = { breakpoints: array } 1612 response.body = { breakpoints: array }
1613 } 1613 }
1614 1614
1615 1615
1616 DebugCommandProcessor.prototype.backtraceRequest_ = function(request, response) { 1616 DebugCommandProcessor.prototype.backtraceRequest_ = function(request, response) {
1617 // Get the number of frames. 1617 // Get the number of frames.
1618 var total_frames = this.exec_state_.frameCount(); 1618 var total_frames = this.exec_state_.frameCount();
1619 1619
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
2191 case 'string': 2191 case 'string':
2192 case 'number': 2192 case 'number':
2193 json = value; 2193 json = value;
2194 break 2194 break
2195 2195
2196 default: 2196 default:
2197 json = null; 2197 json = null;
2198 } 2198 }
2199 return json; 2199 return json;
2200 } 2200 }
OLDNEW
« no previous file with comments | « src/d8.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698