| 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 // Default number of frames to include in the response to backtrace request. | 5 // Default number of frames to include in the response to backtrace request. |
| 6 var kDefaultBacktraceLength = 10; | 6 var kDefaultBacktraceLength = 10; |
| 7 | 7 |
| 8 var Debug = {}; | 8 var Debug = {}; |
| 9 | 9 |
| 10 // Regular expression to skip "crud" at the beginning of a source line which is | 10 // Regular expression to skip "crud" at the beginning of a source line which is |
| 11 // not really code. Currently the regular expression matches whitespace and | 11 // not really code. Currently the regular expression matches whitespace and |
| 12 // comments. | 12 // comments. |
| 13 var sourceLineBeginningSkip = /^(?:\s*(?:\/\*.*?\*\/)*)*/; | 13 var sourceLineBeginningSkip = /^(?:\s*(?:\/\*.*?\*\/)*)*/; |
| 14 | 14 |
| 15 // Debug events which can occour in the V8 JavaScript engine. These originate | 15 // Debug events which can occour in the V8 JavaScript engine. These originate |
| 16 // from the API include file debug.h. | 16 // from the API include file debug.h. |
| 17 Debug.DebugEvent = { Break: 1, | 17 Debug.DebugEvent = { Break: 1, |
| 18 Exception: 2, | 18 Exception: 2, |
| 19 NewFunction: 3, | 19 NewFunction: 3, |
| 20 BeforeCompile: 4, | 20 BeforeCompile: 4, |
| 21 AfterCompile: 5, | 21 AfterCompile: 5, |
| 22 ScriptCollected: 6 }; | 22 ScriptCollected: 6, |
| 23 PendingExceptionInPromise: 7 }; |
| 23 | 24 |
| 24 // Types of exceptions that can be broken upon. | 25 // Types of exceptions that can be broken upon. |
| 25 Debug.ExceptionBreak = { Caught : 0, | 26 Debug.ExceptionBreak = { Caught : 0, |
| 26 Uncaught: 1 }; | 27 Uncaught: 1 }; |
| 27 | 28 |
| 28 // The different types of steps. | 29 // The different types of steps. |
| 29 Debug.StepAction = { StepOut: 0, | 30 Debug.StepAction = { StepOut: 0, |
| 30 StepNext: 1, | 31 StepNext: 1, |
| 31 StepIn: 2, | 32 StepIn: 2, |
| 32 StepMin: 3, | 33 StepMin: 3, |
| (...skipping 2559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2592 | 2593 |
| 2593 default: | 2594 default: |
| 2594 json = null; | 2595 json = null; |
| 2595 } | 2596 } |
| 2596 return json; | 2597 return json; |
| 2597 } | 2598 } |
| 2598 | 2599 |
| 2599 Debug.TestApi = { | 2600 Debug.TestApi = { |
| 2600 CommandProcessorResolveValue: DebugCommandProcessor.resolveValue_ | 2601 CommandProcessorResolveValue: DebugCommandProcessor.resolveValue_ |
| 2601 }; | 2602 }; |
| OLD | NEW |