@@ -147,10 +147,8 @@ function BreakPoint(source_position, opt_script_break_point) {
147147 } else {
148148 this . number_ = next_break_point_number ++ ;
149149 }
150- this . hit_count_ = 0 ;
151150 this . active_ = true ;
152151 this . condition_ = null ;
153- this . ignoreCount_ = 0 ;
154152}
155153
156154
@@ -169,11 +167,6 @@ BreakPoint.prototype.source_position = function() {
169167} ;
170168
171169
172- BreakPoint . prototype . hit_count = function ( ) {
173- return this . hit_count_ ;
174- } ;
175-
176-
177170BreakPoint . prototype . active = function ( ) {
178171 if ( this . script_break_point ( ) ) {
179172 return this . script_break_point ( ) . active ( ) ;
@@ -190,11 +183,6 @@ BreakPoint.prototype.condition = function() {
190183} ;
191184
192185
193- BreakPoint . prototype . ignoreCount = function ( ) {
194- return this . ignoreCount_ ;
195- } ;
196-
197-
198186BreakPoint . prototype . script_break_point = function ( ) {
199187 return this . script_break_point_ ;
200188} ;
@@ -215,11 +203,6 @@ BreakPoint.prototype.setCondition = function(condition) {
215203} ;
216204
217205
218- BreakPoint . prototype . setIgnoreCount = function ( ignoreCount ) {
219- this . ignoreCount_ = ignoreCount ;
220- } ;
221-
222-
223206BreakPoint . prototype . isTriggered = function ( exec_state ) {
224207 // Break point not active - not triggered.
225208 if ( ! this . active ( ) ) return false ;
@@ -239,18 +222,6 @@ BreakPoint.prototype.isTriggered = function(exec_state) {
239222 }
240223 }
241224
242- // Update the hit count.
243- this . hit_count_ ++ ;
244- if ( this . script_break_point_ ) {
245- this . script_break_point_ . hit_count_ ++ ;
246- }
247-
248- // If the break point has an ignore count it is not triggered.
249- if ( this . ignoreCount_ > 0 ) {
250- this . ignoreCount_ -- ;
251- return false ;
252- }
253-
254225 // Break point triggered.
255226 return true ;
256227} ;
@@ -283,10 +254,8 @@ function ScriptBreakPoint(type, script_id_or_name, opt_line, opt_column,
283254 this . groupId_ = opt_groupId ;
284255 this . position_alignment_ = IS_UNDEFINED ( opt_position_alignment )
285256 ? Debug . BreakPositionAlignment . Statement : opt_position_alignment ;
286- this . hit_count_ = 0 ;
287257 this . active_ = true ;
288258 this . condition_ = null ;
289- this . ignoreCount_ = 0 ;
290259 this . break_points_ = [ ] ;
291260}
292261
@@ -299,10 +268,8 @@ ScriptBreakPoint.prototype.cloneForOtherScript = function (other_script) {
299268 copy . number_ = next_break_point_number ++ ;
300269 script_break_points . push ( copy ) ;
301270
302- copy . hit_count_ = this . hit_count_ ;
303271 copy . active_ = this . active_ ;
304272 copy . condition_ = this . condition_ ;
305- copy . ignoreCount_ = this . ignoreCount_ ;
306273 return copy ;
307274} ;
308275
@@ -362,11 +329,6 @@ ScriptBreakPoint.prototype.update_positions = function(line, column) {
362329} ;
363330
364331
365- ScriptBreakPoint . prototype . hit_count = function ( ) {
366- return this . hit_count_ ;
367- } ;
368-
369-
370332ScriptBreakPoint . prototype . active = function ( ) {
371333 return this . active_ ;
372334} ;
@@ -377,11 +339,6 @@ ScriptBreakPoint.prototype.condition = function() {
377339} ;
378340
379341
380- ScriptBreakPoint . prototype . ignoreCount = function ( ) {
381- return this . ignoreCount_ ;
382- } ;
383-
384-
385342ScriptBreakPoint . prototype . enable = function ( ) {
386343 this . active_ = true ;
387344} ;
@@ -397,16 +354,6 @@ ScriptBreakPoint.prototype.setCondition = function(condition) {
397354} ;
398355
399356
400- ScriptBreakPoint . prototype . setIgnoreCount = function ( ignoreCount ) {
401- this . ignoreCount_ = ignoreCount ;
402-
403- // Set ignore count on all break points created from this script break point.
404- for ( var i = 0 ; i < this . break_points_ . length ; i ++ ) {
405- this . break_points_ [ i ] . setIgnoreCount ( ignoreCount ) ;
406- }
407- } ;
408-
409-
410357// Check whether a script matches this script break point. Currently this is
411358// only based on script name.
412359ScriptBreakPoint . prototype . matchesScript = function ( script ) {
@@ -461,7 +408,6 @@ ScriptBreakPoint.prototype.set = function (script) {
461408
462409 // Create a break point object and set the break point.
463410 var break_point = MakeBreakPoint ( position , this ) ;
464- break_point . setIgnoreCount ( this . ignoreCount ( ) ) ;
465411 var actual_position = % SetScriptBreakPoint ( script , position ,
466412 this . position_alignment_ ,
467413 break_point ) ;
@@ -726,13 +672,6 @@ Debug.changeBreakPointCondition = function(break_point_number, condition) {
726672} ;
727673
728674
729- Debug . changeBreakPointIgnoreCount = function ( break_point_number , ignoreCount ) {
730- if ( ignoreCount < 0 ) throw MakeError ( kDebugger , 'Invalid argument' ) ;
731- var break_point = this . findBreakPoint ( break_point_number , false ) ;
732- break_point . setIgnoreCount ( ignoreCount ) ;
733- } ;
734-
735-
736675Debug . clearBreakPoint = function ( break_point_number ) {
737676 var break_point = this . findBreakPoint ( break_point_number , true ) ;
738677 if ( break_point ) {
@@ -857,14 +796,6 @@ Debug.changeScriptBreakPointCondition = function(
857796} ;
858797
859798
860- Debug . changeScriptBreakPointIgnoreCount = function (
861- break_point_number , ignoreCount ) {
862- if ( ignoreCount < 0 ) throw MakeError ( kDebugger , 'Invalid argument' ) ;
863- var script_break_point = this . findScriptBreakPoint ( break_point_number , false ) ;
864- script_break_point . setIgnoreCount ( ignoreCount ) ;
865- } ;
866-
867-
868799Debug . scriptBreakPoints = function ( ) {
869800 return script_break_points ;
870801} ;
@@ -1503,7 +1434,6 @@ DebugCommandProcessor.prototype.setBreakPointRequest_ =
15031434 var enabled = IS_UNDEFINED ( request . arguments . enabled ) ?
15041435 true : request . arguments . enabled ;
15051436 var condition = request . arguments . condition ;
1506- var ignoreCount = request . arguments . ignoreCount ;
15071437 var groupId = request . arguments . groupId ;
15081438
15091439 // Check for legal arguments.
@@ -1569,9 +1499,6 @@ DebugCommandProcessor.prototype.setBreakPointRequest_ =
15691499
15701500 // Set additional break point properties.
15711501 var break_point = Debug . findBreakPoint ( break_point_number ) ;
1572- if ( ignoreCount ) {
1573- Debug . changeBreakPointIgnoreCount ( break_point_number , ignoreCount ) ;
1574- }
15751502 if ( ! enabled ) {
15761503 Debug . disableBreakPoint ( break_point_number ) ;
15771504 }
@@ -1617,7 +1544,6 @@ DebugCommandProcessor.prototype.changeBreakPointRequest_ = function(
16171544 var break_point = TO_NUMBER ( request . arguments . breakpoint ) ;
16181545 var enabled = request . arguments . enabled ;
16191546 var condition = request . arguments . condition ;
1620- var ignoreCount = request . arguments . ignoreCount ;
16211547
16221548 // Check for legal arguments.
16231549 if ( ! break_point ) {
@@ -1638,11 +1564,6 @@ DebugCommandProcessor.prototype.changeBreakPointRequest_ = function(
16381564 if ( ! IS_UNDEFINED ( condition ) ) {
16391565 Debug . changeBreakPointCondition ( break_point , condition ) ;
16401566 }
1641-
1642- // Change ignore count if supplied
1643- if ( ! IS_UNDEFINED ( ignoreCount ) ) {
1644- Debug . changeBreakPointIgnoreCount ( break_point , ignoreCount ) ;
1645- }
16461567} ;
16471568
16481569
@@ -1717,10 +1638,8 @@ DebugCommandProcessor.prototype.listBreakpointsRequest_ = function(
17171638 line : break_point . line ( ) ,
17181639 column : break_point . column ( ) ,
17191640 groupId : break_point . groupId ( ) ,
1720- hit_count : break_point . hit_count ( ) ,
17211641 active : break_point . active ( ) ,
17221642 condition : break_point . condition ( ) ,
1723- ignoreCount : break_point . ignoreCount ( ) ,
17241643 actual_locations : break_point . actual_locations ( )
17251644 } ;
17261645
0 commit comments