OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 180 |
181 /** | 181 /** |
182 * @param {!ExecutionState} execState | 182 * @param {!ExecutionState} execState |
183 */ | 183 */ |
184 DebuggerScript.clearBreakpoints = function(execState) | 184 DebuggerScript.clearBreakpoints = function(execState) |
185 { | 185 { |
186 Debug.clearAllBreakPoints(); | 186 Debug.clearAllBreakPoints(); |
187 } | 187 } |
188 | 188 |
189 /** | 189 /** |
190 * @param {!ExecutionState} execState | |
191 * @param {!{enabled: boolean}} info | |
192 */ | |
193 DebuggerScript.setBreakpointsActivated = function(execState, info) | |
194 { | |
195 Debug.debuggerFlags().breakPointsActive.setValue(info.enabled); | |
196 } | |
197 | |
198 /** | |
199 * @param {!Array<!BreakPoint>|undefined} breakpoints | 190 * @param {!Array<!BreakPoint>|undefined} breakpoints |
200 */ | 191 */ |
201 DebuggerScript.getBreakpointNumbers = function(breakpoints) | 192 DebuggerScript.getBreakpointNumbers = function(breakpoints) |
202 { | 193 { |
203 var numbers = []; | 194 var numbers = []; |
204 if (!breakpoints) | 195 if (!breakpoints) |
205 return numbers; | 196 return numbers; |
206 | 197 |
207 for (var i = 0; i < breakpoints.length; i++) { | 198 for (var i = 0; i < breakpoints.length; i++) { |
208 var breakpoint = breakpoints[i]; | 199 var breakpoint = breakpoints[i]; |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 case ScopeType.Global: | 489 case ScopeType.Global: |
499 case ScopeType.With: | 490 case ScopeType.With: |
500 result = scopeObject; | 491 result = scopeObject; |
501 break; | 492 break; |
502 } | 493 } |
503 return result; | 494 return result; |
504 } | 495 } |
505 | 496 |
506 return DebuggerScript; | 497 return DebuggerScript; |
507 })(); | 498 })(); |
OLD | NEW |