OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 (function (global, utils) { | 5 (function (global, utils) { |
6 "use strict"; | 6 "use strict"; |
7 | 7 |
8 // ---------------------------------------------------------------------------- | 8 // ---------------------------------------------------------------------------- |
9 // Imports | 9 // Imports |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 var next_response_seq = 0; | 93 var next_response_seq = 0; |
94 var next_break_point_number = 1; | 94 var next_break_point_number = 1; |
95 var break_points = []; | 95 var break_points = []; |
96 var script_break_points = []; | 96 var script_break_points = []; |
97 var debugger_flags = { | 97 var debugger_flags = { |
98 breakPointsActive: { | 98 breakPointsActive: { |
99 value: true, | 99 value: true, |
100 getValue: function() { return this.value; }, | 100 getValue: function() { return this.value; }, |
101 setValue: function(value) { | 101 setValue: function(value) { |
102 this.value = !!value; | 102 this.value = !!value; |
103 %SetDisableBreak(!this.value); | 103 %SetBreakPointsActive(this.value); |
104 } | 104 } |
105 }, | 105 }, |
106 breakOnCaughtException: { | 106 breakOnCaughtException: { |
107 getValue: function() { return Debug.isBreakOnException(); }, | 107 getValue: function() { return Debug.isBreakOnException(); }, |
108 setValue: function(value) { | 108 setValue: function(value) { |
109 if (value) { | 109 if (value) { |
110 Debug.setBreakOnException(); | 110 Debug.setBreakOnException(); |
111 } else { | 111 } else { |
112 Debug.clearBreakOnException(); | 112 Debug.clearBreakOnException(); |
113 } | 113 } |
(...skipping 2500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2614 "IsBreakPointTriggered", IsBreakPointTriggered, | 2614 "IsBreakPointTriggered", IsBreakPointTriggered, |
2615 "UpdateScriptBreakPoints", UpdateScriptBreakPoints, | 2615 "UpdateScriptBreakPoints", UpdateScriptBreakPoints, |
2616 ]); | 2616 ]); |
2617 | 2617 |
2618 // Export to liveedit.js | 2618 // Export to liveedit.js |
2619 utils.Export(function(to) { | 2619 utils.Export(function(to) { |
2620 to.GetScriptBreakPoints = GetScriptBreakPoints; | 2620 to.GetScriptBreakPoints = GetScriptBreakPoints; |
2621 }); | 2621 }); |
2622 | 2622 |
2623 }) | 2623 }) |
OLD | NEW |