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 }; | |
24 | 23 |
25 // Types of exceptions that can be broken upon. | 24 // Types of exceptions that can be broken upon. |
26 Debug.ExceptionBreak = { Caught : 0, | 25 Debug.ExceptionBreak = { Caught : 0, |
27 Uncaught: 1 }; | 26 Uncaught: 1 }; |
28 | 27 |
29 // The different types of steps. | 28 // The different types of steps. |
30 Debug.StepAction = { StepOut: 0, | 29 Debug.StepAction = { StepOut: 0, |
31 StepNext: 1, | 30 StepNext: 1, |
32 StepIn: 2, | 31 StepIn: 2, |
33 StepMin: 3, | 32 StepMin: 3, |
(...skipping 2559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2593 | 2592 |
2594 default: | 2593 default: |
2595 json = null; | 2594 json = null; |
2596 } | 2595 } |
2597 return json; | 2596 return json; |
2598 } | 2597 } |
2599 | 2598 |
2600 Debug.TestApi = { | 2599 Debug.TestApi = { |
2601 CommandProcessorResolveValue: DebugCommandProcessor.resolveValue_ | 2600 CommandProcessorResolveValue: DebugCommandProcessor.resolveValue_ |
2602 }; | 2601 }; |
OLD | NEW |