Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: test/debugger/test-api.js

Issue 2537313005: [debug] Revert debug API removal (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« test/cctest/test-debug.cc ('K') | « test/cctest/test-debug.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 AfterCompile: 3, 33 NewFunction: 3,
34 CompileError: 4, 34 BeforeCompile: 4,
35 AfterCompile: 5,
36 CompileError: 6,
37 AsyncTaskEvent: 7
35 }; 38 };
36 39
37 // The different types of steps. 40 // The different types of steps.
38 this.StepAction = { StepOut: 0, 41 this.StepAction = { StepOut: 0,
39 StepNext: 1, 42 StepNext: 1,
40 StepIn: 2, 43 StepIn: 2,
41 StepFrame: 3, 44 StepFrame: 3,
42 }; 45 };
43 46
44 // The different types of scripts matching enum ScriptType in objects.h. 47 // The different types of scripts matching enum ScriptType in objects.h.
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 debug.instance = new DebugWrapper(); 835 debug.instance = new DebugWrapper();
833 debug.instance.enable(); 836 debug.instance.enable();
834 } 837 }
835 return debug.instance; 838 return debug.instance;
836 }}); 839 }});
837 840
838 Object.defineProperty(debug, 'ScopeType', { get: function() { 841 Object.defineProperty(debug, 'ScopeType', { get: function() {
839 const instance = debug.Debug; 842 const instance = debug.Debug;
840 return instance.ScopeType; 843 return instance.ScopeType;
841 }}); 844 }});
OLDNEW
« test/cctest/test-debug.cc ('K') | « test/cctest/test-debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698