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

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

Issue 1402913002: Debugger: fix stepping when break points are deactivated. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix test for stress test Created 5 years, 2 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/debug/debug.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 })
OLDNEW
« no previous file with comments | « src/debug/debug.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698