OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 "use strict"; | 5 "use strict"; |
6 | 6 |
7 // If true, prints all messages sent and received by inspector. | 7 // If true, prints all messages sent and received by inspector. |
8 const printProtocolMessages = false; | 8 const printProtocolMessages = false; |
9 | 9 |
10 // The active wrapper instance. | 10 // The active wrapper instance. |
(...skipping 12 matching lines...) Expand all Loading... |
23 // Each message dispatched by the Debug wrapper is assigned a unique number | 23 // Each message dispatched by the Debug wrapper is assigned a unique number |
24 // using nextMessageId. | 24 // using nextMessageId. |
25 this.nextMessageId = 0; | 25 this.nextMessageId = 0; |
26 | 26 |
27 // The listener method called on certain events. | 27 // The listener method called on certain events. |
28 this.listener = undefined; | 28 this.listener = undefined; |
29 | 29 |
30 // Debug events which can occur in the V8 JavaScript engine. | 30 // Debug events which can occur in the V8 JavaScript engine. |
31 this.DebugEvent = { Break: 1, | 31 this.DebugEvent = { Break: 1, |
32 Exception: 2, | 32 Exception: 2, |
33 NewFunction: 3, | 33 AfterCompile: 3, |
34 BeforeCompile: 4, | 34 CompileError: 4, |
35 AfterCompile: 5, | |
36 CompileError: 6, | |
37 AsyncTaskEvent: 7 | |
38 }; | 35 }; |
39 | 36 |
40 // The different types of steps. | 37 // The different types of steps. |
41 this.StepAction = { StepOut: 0, | 38 this.StepAction = { StepOut: 0, |
42 StepNext: 1, | 39 StepNext: 1, |
43 StepIn: 2, | 40 StepIn: 2, |
44 StepFrame: 3, | 41 StepFrame: 3, |
45 }; | 42 }; |
46 | 43 |
47 // The different types of scripts matching enum ScriptType in objects.h. | 44 // The different types of scripts matching enum ScriptType in objects.h. |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 debug.instance = new DebugWrapper(); | 832 debug.instance = new DebugWrapper(); |
836 debug.instance.enable(); | 833 debug.instance.enable(); |
837 } | 834 } |
838 return debug.instance; | 835 return debug.instance; |
839 }}); | 836 }}); |
840 | 837 |
841 Object.defineProperty(debug, 'ScopeType', { get: function() { | 838 Object.defineProperty(debug, 'ScopeType', { get: function() { |
842 const instance = debug.Debug; | 839 const instance = debug.Debug; |
843 return instance.ScopeType; | 840 return instance.ScopeType; |
844 }}); | 841 }}); |
OLD | NEW |