roku-debug 0.20.6 → 0.20.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/CompileErrorProcessor.d.ts +7 -2
- package/dist/CompileErrorProcessor.js +64 -69
- package/dist/CompileErrorProcessor.js.map +1 -1
- package/dist/DeviceInfo.d.ts +1 -0
- package/dist/adapters/DebugProtocolAdapter.d.ts +64 -17
- package/dist/adapters/DebugProtocolAdapter.js +264 -157
- package/dist/adapters/DebugProtocolAdapter.js.map +1 -1
- package/dist/adapters/TelnetAdapter.d.ts +8 -3
- package/dist/adapters/TelnetAdapter.js +14 -6
- package/dist/adapters/TelnetAdapter.js.map +1 -1
- package/dist/debugProtocol/Constants.d.ts +171 -81
- package/dist/debugProtocol/Constants.js +206 -126
- package/dist/debugProtocol/Constants.js.map +1 -1
- package/dist/debugProtocol/DebugProtocolClientReplaySession.d.ts +46 -0
- package/dist/debugProtocol/DebugProtocolClientReplaySession.js +278 -0
- package/dist/debugProtocol/DebugProtocolClientReplaySession.js.map +1 -0
- package/dist/debugProtocol/PluginInterface.d.ts +38 -0
- package/dist/debugProtocol/PluginInterface.js +86 -0
- package/dist/debugProtocol/PluginInterface.js.map +1 -0
- package/dist/debugProtocol/ProtocolUtil.d.ts +56 -0
- package/dist/debugProtocol/ProtocolUtil.js +164 -0
- package/dist/debugProtocol/ProtocolUtil.js.map +1 -0
- package/dist/debugProtocol/client/DebugProtocolClient.d.ts +312 -0
- package/dist/debugProtocol/client/DebugProtocolClient.js +1095 -0
- package/dist/debugProtocol/client/DebugProtocolClient.js.map +1 -0
- package/dist/debugProtocol/client/DebugProtocolClientPlugin.d.ts +44 -0
- package/dist/debugProtocol/client/DebugProtocolClientPlugin.js +3 -0
- package/dist/debugProtocol/client/DebugProtocolClientPlugin.js.map +1 -0
- package/dist/debugProtocol/events/ProtocolEvent.d.ts +66 -0
- package/dist/debugProtocol/events/ProtocolEvent.js +3 -0
- package/dist/debugProtocol/events/ProtocolEvent.js.map +1 -0
- package/dist/debugProtocol/events/requests/AddBreakpointsRequest.d.ts +30 -0
- package/dist/debugProtocol/events/requests/AddBreakpointsRequest.js +63 -0
- package/dist/debugProtocol/events/requests/AddBreakpointsRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/AddConditionalBreakpointsRequest.d.ts +48 -0
- package/dist/debugProtocol/events/requests/AddConditionalBreakpointsRequest.js +69 -0
- package/dist/debugProtocol/events/requests/AddConditionalBreakpointsRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/ContinueRequest.d.ts +20 -0
- package/dist/debugProtocol/events/requests/ContinueRequest.js +40 -0
- package/dist/debugProtocol/events/requests/ContinueRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/ExecuteRequest.d.ts +26 -0
- package/dist/debugProtocol/events/requests/ExecuteRequest.js +49 -0
- package/dist/debugProtocol/events/requests/ExecuteRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/ExitChannelRequest.d.ts +20 -0
- package/dist/debugProtocol/events/requests/ExitChannelRequest.js +40 -0
- package/dist/debugProtocol/events/requests/ExitChannelRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/HandshakeRequest.d.ts +26 -0
- package/dist/debugProtocol/events/requests/HandshakeRequest.js +47 -0
- package/dist/debugProtocol/events/requests/HandshakeRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/ListBreakpointsRequest.d.ts +20 -0
- package/dist/debugProtocol/events/requests/ListBreakpointsRequest.js +40 -0
- package/dist/debugProtocol/events/requests/ListBreakpointsRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/RemoveBreakpointsRequest.d.ts +29 -0
- package/dist/debugProtocol/events/requests/RemoveBreakpointsRequest.js +60 -0
- package/dist/debugProtocol/events/requests/RemoveBreakpointsRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/StackTraceRequest.d.ts +22 -0
- package/dist/debugProtocol/events/requests/StackTraceRequest.js +43 -0
- package/dist/debugProtocol/events/requests/StackTraceRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/StepRequest.d.ts +25 -0
- package/dist/debugProtocol/events/requests/StepRequest.js +46 -0
- package/dist/debugProtocol/events/requests/StepRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/StopRequest.d.ts +20 -0
- package/dist/debugProtocol/events/requests/StopRequest.js +39 -0
- package/dist/debugProtocol/events/requests/StopRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/ThreadsRequest.d.ts +20 -0
- package/dist/debugProtocol/events/requests/ThreadsRequest.js +40 -0
- package/dist/debugProtocol/events/requests/ThreadsRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/VariablesRequest.d.ts +59 -0
- package/dist/debugProtocol/events/requests/VariablesRequest.js +123 -0
- package/dist/debugProtocol/events/requests/VariablesRequest.js.map +1 -0
- package/dist/debugProtocol/events/responses/AddBreakpointsResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/AddConditionalBreakpointsResponse.d.ts +3 -0
- package/dist/debugProtocol/events/responses/AddConditionalBreakpointsResponse.js +9 -0
- package/dist/debugProtocol/events/responses/AddConditionalBreakpointsResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/ExecuteV3Response.d.ts +42 -0
- package/dist/debugProtocol/events/responses/ExecuteV3Response.js +94 -0
- package/dist/debugProtocol/events/responses/ExecuteV3Response.js.map +1 -0
- package/dist/debugProtocol/events/responses/GenericResponse.d.ts +17 -0
- package/dist/debugProtocol/events/responses/GenericResponse.js +40 -0
- package/dist/debugProtocol/events/responses/GenericResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/GenericV3Response.d.ts +15 -0
- package/dist/debugProtocol/events/responses/GenericV3Response.js +38 -0
- package/dist/debugProtocol/events/responses/GenericV3Response.js.map +1 -0
- package/dist/debugProtocol/events/responses/HandshakeResponse.d.ts +28 -0
- package/dist/debugProtocol/events/responses/HandshakeResponse.js +69 -0
- package/dist/debugProtocol/events/responses/HandshakeResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/HandshakeV3Response.d.ts +42 -0
- package/dist/debugProtocol/events/responses/HandshakeV3Response.js +98 -0
- package/dist/debugProtocol/events/responses/HandshakeV3Response.js.map +1 -0
- package/dist/debugProtocol/events/responses/ListBreakpointsResponse.d.ts +35 -0
- package/dist/debugProtocol/events/responses/ListBreakpointsResponse.js +68 -0
- package/dist/debugProtocol/events/responses/ListBreakpointsResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/RemoveBreakpointsResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/StackTraceResponse.d.ts +24 -0
- package/dist/debugProtocol/events/responses/StackTraceResponse.js +72 -0
- package/dist/debugProtocol/events/responses/StackTraceResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/StackTraceV3Response.d.ts +37 -0
- package/dist/debugProtocol/events/responses/StackTraceV3Response.js +67 -0
- package/dist/debugProtocol/events/responses/StackTraceV3Response.js.map +1 -0
- package/dist/debugProtocol/events/responses/ThreadsResponse.d.ts +54 -0
- package/dist/debugProtocol/events/responses/ThreadsResponse.js +80 -0
- package/dist/debugProtocol/events/responses/ThreadsResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/VariablesResponse.d.ts +117 -0
- package/dist/debugProtocol/events/responses/VariablesResponse.js +335 -0
- package/dist/debugProtocol/events/responses/VariablesResponse.js.map +1 -0
- package/dist/debugProtocol/events/updates/AllThreadsStoppedUpdate.d.ts +35 -0
- package/dist/debugProtocol/events/updates/AllThreadsStoppedUpdate.js +58 -0
- package/dist/debugProtocol/events/updates/AllThreadsStoppedUpdate.js.map +1 -0
- package/dist/debugProtocol/events/updates/BreakpointErrorUpdate.d.ts +42 -0
- package/dist/debugProtocol/events/updates/BreakpointErrorUpdate.js +97 -0
- package/dist/debugProtocol/events/updates/BreakpointErrorUpdate.js.map +1 -0
- package/dist/debugProtocol/events/updates/BreakpointVerifiedUpdate.d.ts +41 -0
- package/dist/debugProtocol/events/updates/BreakpointVerifiedUpdate.js +74 -0
- package/dist/debugProtocol/events/updates/BreakpointVerifiedUpdate.js.map +1 -0
- package/dist/debugProtocol/events/updates/CompileErrorUpdate.d.ts +60 -0
- package/dist/debugProtocol/events/updates/CompileErrorUpdate.js +89 -0
- package/dist/debugProtocol/events/updates/CompileErrorUpdate.js.map +1 -0
- package/dist/debugProtocol/events/updates/IOPortOpenedUpdate.d.ts +23 -0
- package/dist/debugProtocol/events/updates/IOPortOpenedUpdate.js +49 -0
- package/dist/debugProtocol/events/updates/IOPortOpenedUpdate.js.map +1 -0
- package/dist/debugProtocol/events/updates/ThreadAttachedUpdate.d.ts +26 -0
- package/dist/debugProtocol/events/updates/ThreadAttachedUpdate.js +50 -0
- package/dist/debugProtocol/events/updates/ThreadAttachedUpdate.js.map +1 -0
- package/dist/debugProtocol/server/DebugProtocolServer.d.ts +110 -0
- package/dist/debugProtocol/server/DebugProtocolServer.js +306 -0
- package/dist/debugProtocol/server/DebugProtocolServer.js.map +1 -0
- package/dist/debugProtocol/server/DebugProtocolServerPlugin.d.ts +41 -0
- package/dist/debugProtocol/server/DebugProtocolServerPlugin.js +3 -0
- package/dist/debugProtocol/server/DebugProtocolServerPlugin.js.map +1 -0
- package/dist/debugSession/BrightScriptDebugSession.d.ts +9 -1
- package/dist/debugSession/BrightScriptDebugSession.js +178 -89
- package/dist/debugSession/BrightScriptDebugSession.js.map +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/logging.d.ts +1 -0
- package/dist/logging.js +4 -2
- package/dist/logging.js.map +1 -1
- package/dist/managers/ActionQueue.d.ts +7 -1
- package/dist/managers/ActionQueue.js +27 -5
- package/dist/managers/ActionQueue.js.map +1 -1
- package/dist/managers/BreakpointManager.d.ts +82 -27
- package/dist/managers/BreakpointManager.js +168 -63
- package/dist/managers/BreakpointManager.js.map +1 -1
- package/dist/managers/ProjectManager.d.ts +3 -0
- package/dist/managers/ProjectManager.js +42 -36
- package/dist/managers/ProjectManager.js.map +1 -1
- package/dist/util.d.ts +8 -6
- package/dist/util.js +36 -19
- package/dist/util.js.map +1 -1
- package/package.json +14 -5
- package/roku-debug-0.20.8.tgz +0 -0
- package/dist/debugProtocol/Debugger.d.ts +0 -161
- package/dist/debugProtocol/Debugger.js +0 -635
- package/dist/debugProtocol/Debugger.js.map +0 -1
- package/dist/debugProtocol/responses/AddBreakpointsResponse.js.map +0 -1
- package/dist/debugProtocol/responses/BreakpointErrorUpdateResponse.d.ts +0 -32
- package/dist/debugProtocol/responses/BreakpointErrorUpdateResponse.js +0 -67
- package/dist/debugProtocol/responses/BreakpointErrorUpdateResponse.js.map +0 -1
- package/dist/debugProtocol/responses/BreakpointVerifiedUpdateResponse.d.ts +0 -32
- package/dist/debugProtocol/responses/BreakpointVerifiedUpdateResponse.js +0 -56
- package/dist/debugProtocol/responses/BreakpointVerifiedUpdateResponse.js.map +0 -1
- package/dist/debugProtocol/responses/ConnectIOPortResponse.d.ts +0 -10
- package/dist/debugProtocol/responses/ConnectIOPortResponse.js +0 -39
- package/dist/debugProtocol/responses/ConnectIOPortResponse.js.map +0 -1
- package/dist/debugProtocol/responses/ExecuteResponseV3.d.ts +0 -23
- package/dist/debugProtocol/responses/ExecuteResponseV3.js +0 -54
- package/dist/debugProtocol/responses/ExecuteResponseV3.js.map +0 -1
- package/dist/debugProtocol/responses/HandshakeResponse.d.ts +0 -12
- package/dist/debugProtocol/responses/HandshakeResponse.js +0 -39
- package/dist/debugProtocol/responses/HandshakeResponse.js.map +0 -1
- package/dist/debugProtocol/responses/HandshakeResponseV3.d.ts +0 -14
- package/dist/debugProtocol/responses/HandshakeResponseV3.js +0 -47
- package/dist/debugProtocol/responses/HandshakeResponseV3.js.map +0 -1
- package/dist/debugProtocol/responses/ListBreakpointsResponse.d.ts +0 -25
- package/dist/debugProtocol/responses/ListBreakpointsResponse.js +0 -65
- package/dist/debugProtocol/responses/ListBreakpointsResponse.js.map +0 -1
- package/dist/debugProtocol/responses/ProtocolEvent.d.ts +0 -11
- package/dist/debugProtocol/responses/ProtocolEvent.js +0 -38
- package/dist/debugProtocol/responses/ProtocolEvent.js.map +0 -1
- package/dist/debugProtocol/responses/ProtocolEventV3.d.ts +0 -11
- package/dist/debugProtocol/responses/ProtocolEventV3.js +0 -42
- package/dist/debugProtocol/responses/ProtocolEventV3.js.map +0 -1
- package/dist/debugProtocol/responses/RemoveBreakpointsResponse.js.map +0 -1
- package/dist/debugProtocol/responses/StackTraceResponse.d.ts +0 -18
- package/dist/debugProtocol/responses/StackTraceResponse.js +0 -58
- package/dist/debugProtocol/responses/StackTraceResponse.js.map +0 -1
- package/dist/debugProtocol/responses/StackTraceResponseV3.d.ts +0 -18
- package/dist/debugProtocol/responses/StackTraceResponseV3.js +0 -58
- package/dist/debugProtocol/responses/StackTraceResponseV3.js.map +0 -1
- package/dist/debugProtocol/responses/ThreadsResponse.d.ts +0 -22
- package/dist/debugProtocol/responses/ThreadsResponse.js +0 -63
- package/dist/debugProtocol/responses/ThreadsResponse.js.map +0 -1
- package/dist/debugProtocol/responses/UndefinedResponse.d.ts +0 -10
- package/dist/debugProtocol/responses/UndefinedResponse.js +0 -39
- package/dist/debugProtocol/responses/UndefinedResponse.js.map +0 -1
- package/dist/debugProtocol/responses/UpdateThreadsResponse.d.ts +0 -25
- package/dist/debugProtocol/responses/UpdateThreadsResponse.js +0 -91
- package/dist/debugProtocol/responses/UpdateThreadsResponse.js.map +0 -1
- package/dist/debugProtocol/responses/VariableResponse.d.ts +0 -27
- package/dist/debugProtocol/responses/VariableResponse.js +0 -141
- package/dist/debugProtocol/responses/VariableResponse.js.map +0 -1
- package/dist/debugProtocol/responses/index.d.ts +0 -11
- package/dist/debugProtocol/responses/index.js +0 -24
- package/dist/debugProtocol/responses/index.js.map +0 -1
- package/roku-debug-0.20.6.tgz +0 -0
- /package/dist/debugProtocol/{responses → events/responses}/AddBreakpointsResponse.d.ts +0 -0
- /package/dist/debugProtocol/{responses → events/responses}/AddBreakpointsResponse.js +0 -0
- /package/dist/debugProtocol/{responses → events/responses}/RemoveBreakpointsResponse.d.ts +0 -0
- /package/dist/debugProtocol/{responses → events/responses}/RemoveBreakpointsResponse.js +0 -0
|
@@ -1,147 +1,227 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.UpdateTypeCode = exports.UpdateType = exports.StopReasonCode = exports.StopReason = exports.ErrorFlags = exports.ErrorCode = exports.StepTypeCode = exports.StepType = exports.CommandCode = exports.Command = exports.PROTOCOL_ERROR_CODES = void 0;
|
|
4
4
|
var PROTOCOL_ERROR_CODES;
|
|
5
5
|
(function (PROTOCOL_ERROR_CODES) {
|
|
6
6
|
PROTOCOL_ERROR_CODES[PROTOCOL_ERROR_CODES["NOT_TESTED"] = 0] = "NOT_TESTED";
|
|
7
7
|
PROTOCOL_ERROR_CODES[PROTOCOL_ERROR_CODES["SUPPORTED"] = 1] = "SUPPORTED";
|
|
8
8
|
PROTOCOL_ERROR_CODES[PROTOCOL_ERROR_CODES["NOT_SUPPORTED"] = 2] = "NOT_SUPPORTED";
|
|
9
9
|
})(PROTOCOL_ERROR_CODES = exports.PROTOCOL_ERROR_CODES || (exports.PROTOCOL_ERROR_CODES = {}));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
10
|
+
/**
|
|
11
|
+
* The name of commands that can be sent from the client to the server. Think of these like "requests".
|
|
12
|
+
*/
|
|
13
|
+
var Command;
|
|
14
|
+
(function (Command) {
|
|
15
|
+
/**
|
|
16
|
+
* Stop all threads in application. Enter into debugger.
|
|
17
|
+
*
|
|
18
|
+
* Individual threads can not be stopped/started.
|
|
19
|
+
*/
|
|
20
|
+
Command["Stop"] = "Stop";
|
|
21
|
+
/**
|
|
22
|
+
* Exit from debugger and continue execution of all threads.
|
|
23
|
+
*/
|
|
24
|
+
Command["Continue"] = "Continue";
|
|
25
|
+
/**
|
|
26
|
+
* Application threads info
|
|
27
|
+
*/
|
|
28
|
+
Command["Threads"] = "Threads";
|
|
29
|
+
/**
|
|
30
|
+
* Get the stack trace of a specific thread.
|
|
31
|
+
*/
|
|
32
|
+
Command["StackTrace"] = "StackTrace";
|
|
33
|
+
/**
|
|
34
|
+
* Listing of variables accessible from selected thread and stack frame.
|
|
35
|
+
*/
|
|
36
|
+
Command["Variables"] = "Variables";
|
|
37
|
+
/**
|
|
38
|
+
* Execute one step on a specified thread.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
Command["Step"] = "Step";
|
|
42
|
+
/**
|
|
43
|
+
* Add a dynamic breakpoint.
|
|
44
|
+
*
|
|
45
|
+
* @since protocol 2.0.0 (Roku OS 9.3)
|
|
46
|
+
*/
|
|
47
|
+
Command["AddBreakpoints"] = "AddBreakpoints";
|
|
48
|
+
/**
|
|
49
|
+
* Lists existing dynamic and conditional breakpoints and their status.
|
|
50
|
+
*
|
|
51
|
+
* @since protocol 2.0.0 (Roku OS 9.3)
|
|
52
|
+
*/
|
|
53
|
+
Command["ListBreakpoints"] = "ListBreakpoints";
|
|
54
|
+
/**
|
|
55
|
+
* Removes dynamic breakpoints.
|
|
56
|
+
*
|
|
57
|
+
* @since protocol 2.0.0 (Roku OS 9.3)
|
|
58
|
+
*/
|
|
59
|
+
Command["RemoveBreakpoints"] = "RemoveBreakpoints";
|
|
60
|
+
/**
|
|
61
|
+
* Executes code in a specific stack frame.
|
|
62
|
+
*
|
|
63
|
+
* @since protocol 2.1 (Roku OS 10.5)
|
|
64
|
+
*/
|
|
65
|
+
Command["Execute"] = "Execute";
|
|
66
|
+
/**
|
|
67
|
+
* Adds a conditional breakpoint.
|
|
68
|
+
*
|
|
69
|
+
* @since protocol 3.1.0 (Roku OS 11.5)
|
|
70
|
+
*/
|
|
71
|
+
Command["AddConditionalBreakpoints"] = "AddConditionalBreakpoints";
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
Command["ExitChannel"] = "ExitChannel";
|
|
76
|
+
})(Command = exports.Command || (exports.Command = {}));
|
|
77
|
+
/**
|
|
78
|
+
* Only used for serializing/deserializing over the debug protocol. Use `Command` in your code.
|
|
79
|
+
*/
|
|
80
|
+
var CommandCode;
|
|
81
|
+
(function (CommandCode) {
|
|
82
|
+
CommandCode[CommandCode["Stop"] = 1] = "Stop";
|
|
83
|
+
CommandCode[CommandCode["Continue"] = 2] = "Continue";
|
|
84
|
+
CommandCode[CommandCode["Threads"] = 3] = "Threads";
|
|
85
|
+
CommandCode[CommandCode["StackTrace"] = 4] = "StackTrace";
|
|
86
|
+
CommandCode[CommandCode["Variables"] = 5] = "Variables";
|
|
87
|
+
CommandCode[CommandCode["Step"] = 6] = "Step";
|
|
88
|
+
CommandCode[CommandCode["AddBreakpoints"] = 7] = "AddBreakpoints";
|
|
89
|
+
CommandCode[CommandCode["ListBreakpoints"] = 8] = "ListBreakpoints";
|
|
90
|
+
CommandCode[CommandCode["RemoveBreakpoints"] = 9] = "RemoveBreakpoints";
|
|
91
|
+
CommandCode[CommandCode["Execute"] = 10] = "Execute";
|
|
92
|
+
CommandCode[CommandCode["AddConditionalBreakpoints"] = 11] = "AddConditionalBreakpoints";
|
|
93
|
+
CommandCode[CommandCode["ExitChannel"] = 122] = "ExitChannel";
|
|
94
|
+
})(CommandCode = exports.CommandCode || (exports.CommandCode = {}));
|
|
95
|
+
/**
|
|
96
|
+
* Contains an a StepType enum, indicating the type of step action to be executed.
|
|
97
|
+
*/
|
|
98
|
+
var StepType;
|
|
99
|
+
(function (StepType) {
|
|
100
|
+
StepType["None"] = "None";
|
|
101
|
+
StepType["Line"] = "Line";
|
|
102
|
+
StepType["Out"] = "Out";
|
|
103
|
+
StepType["Over"] = "Over";
|
|
104
|
+
})(StepType = exports.StepType || (exports.StepType = {}));
|
|
105
|
+
/**
|
|
106
|
+
* Only used for serializing/deserializing over the debug protocol. Use `StepType` in your code.
|
|
107
|
+
*/
|
|
108
|
+
var StepTypeCode;
|
|
109
|
+
(function (StepTypeCode) {
|
|
110
|
+
StepTypeCode[StepTypeCode["None"] = 0] = "None";
|
|
111
|
+
StepTypeCode[StepTypeCode["Line"] = 1] = "Line";
|
|
112
|
+
StepTypeCode[StepTypeCode["Out"] = 2] = "Out";
|
|
113
|
+
StepTypeCode[StepTypeCode["Over"] = 3] = "Over";
|
|
114
|
+
})(StepTypeCode = exports.StepTypeCode || (exports.StepTypeCode = {}));
|
|
115
|
+
var ErrorCode;
|
|
116
|
+
(function (ErrorCode) {
|
|
117
|
+
ErrorCode[ErrorCode["OK"] = 0] = "OK";
|
|
118
|
+
ErrorCode[ErrorCode["OTHER_ERR"] = 1] = "OTHER_ERR";
|
|
119
|
+
ErrorCode[ErrorCode["UNDEFINED_COMMAND"] = 2] = "UNDEFINED_COMMAND";
|
|
120
|
+
ErrorCode[ErrorCode["CANT_CONTINUE"] = 3] = "CANT_CONTINUE";
|
|
121
|
+
ErrorCode[ErrorCode["NOT_STOPPED"] = 4] = "NOT_STOPPED";
|
|
122
|
+
ErrorCode[ErrorCode["INVALID_ARGS"] = 5] = "INVALID_ARGS";
|
|
123
|
+
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
|
|
124
|
+
var ErrorFlags;
|
|
125
|
+
(function (ErrorFlags) {
|
|
126
|
+
ErrorFlags[ErrorFlags["INVALID_VALUE_IN_PATH"] = 1] = "INVALID_VALUE_IN_PATH";
|
|
127
|
+
ErrorFlags[ErrorFlags["MISSING_KEY_IN_PATH"] = 2] = "MISSING_KEY_IN_PATH";
|
|
128
|
+
})(ErrorFlags = exports.ErrorFlags || (exports.ErrorFlags = {}));
|
|
129
|
+
var StopReason;
|
|
130
|
+
(function (StopReason) {
|
|
131
|
+
/**
|
|
132
|
+
* Uninitialized stopReason.
|
|
133
|
+
*/
|
|
134
|
+
StopReason["Undefined"] = "Undefined";
|
|
135
|
+
/**
|
|
136
|
+
* Thread is running.
|
|
137
|
+
*/
|
|
138
|
+
StopReason["NotStopped"] = "NotStopped";
|
|
139
|
+
/**
|
|
140
|
+
* Thread exited.
|
|
141
|
+
*/
|
|
142
|
+
StopReason["NormalExit"] = "NormalExit";
|
|
143
|
+
/**
|
|
144
|
+
* Stop statement executed.
|
|
145
|
+
*/
|
|
146
|
+
StopReason["StopStatement"] = "StopStatement";
|
|
147
|
+
/**
|
|
148
|
+
* Another thread in the group encountered an error, this thread completed a step operation, or other reason outside this thread.
|
|
149
|
+
*/
|
|
150
|
+
StopReason["Break"] = "Break";
|
|
151
|
+
/**
|
|
152
|
+
* Thread stopped because of an error during execution.
|
|
153
|
+
*/
|
|
154
|
+
StopReason["RuntimeError"] = "RuntimeError";
|
|
155
|
+
})(StopReason = exports.StopReason || (exports.StopReason = {}));
|
|
156
|
+
/**
|
|
157
|
+
* Only used for serializing/deserializing over the debug protocol. Use `StopReason` in your code.
|
|
158
|
+
*/
|
|
159
|
+
var StopReasonCode;
|
|
160
|
+
(function (StopReasonCode) {
|
|
161
|
+
StopReasonCode[StopReasonCode["Undefined"] = 0] = "Undefined";
|
|
162
|
+
StopReasonCode[StopReasonCode["NotStopped"] = 1] = "NotStopped";
|
|
163
|
+
StopReasonCode[StopReasonCode["NormalExit"] = 2] = "NormalExit";
|
|
164
|
+
StopReasonCode[StopReasonCode["StopStatement"] = 3] = "StopStatement";
|
|
165
|
+
StopReasonCode[StopReasonCode["Break"] = 4] = "Break";
|
|
166
|
+
StopReasonCode[StopReasonCode["RuntimeError"] = 5] = "RuntimeError";
|
|
167
|
+
})(StopReasonCode = exports.StopReasonCode || (exports.StopReasonCode = {}));
|
|
168
|
+
/**
|
|
169
|
+
* Human-readable UpdateType values. To get the codes, use the `UpdateTypeCode` enum
|
|
170
|
+
*/
|
|
171
|
+
var UpdateType;
|
|
172
|
+
(function (UpdateType) {
|
|
173
|
+
UpdateType["Undefined"] = "Undefined";
|
|
174
|
+
/**
|
|
175
|
+
* The remote debugging client should connect to the port included in the data field to retrieve the running script's output. Only reads are allowed on the I/O connection.
|
|
176
|
+
*/
|
|
177
|
+
UpdateType["IOPortOpened"] = "IOPortOpened";
|
|
178
|
+
/**
|
|
179
|
+
* All threads are stopped and an ALL_THREADS_STOPPED message is sent to the debugging client.
|
|
180
|
+
*
|
|
181
|
+
* The data field includes information on why the threads were stopped.
|
|
182
|
+
*/
|
|
183
|
+
UpdateType["AllThreadsStopped"] = "AllThreadsStopped";
|
|
184
|
+
/**
|
|
185
|
+
* A new thread attempts to execute a script when all threads have already been stopped. The new thread is immediately stopped and is "attached" to the
|
|
186
|
+
* debugger so that the debugger can inspect the thread, its stack frames, and local variables.
|
|
187
|
+
*
|
|
188
|
+
* Additionally, when a thread executes a step operation, that thread detaches from the debugger temporarily,
|
|
189
|
+
* and a THREAD_ATTACHED message is sent to the debugging client when the thread has completed its step operation and has re-attached to the debugger.
|
|
190
|
+
*
|
|
191
|
+
* The data field includes information on why the threads were stopped
|
|
192
|
+
*/
|
|
193
|
+
UpdateType["ThreadAttached"] = "ThreadAttached";
|
|
57
194
|
/**
|
|
58
195
|
* A compilation or runtime error occurred when evaluating the cond_expr of a conditional breakpoint
|
|
59
196
|
* @since protocol 3.1
|
|
60
197
|
*/
|
|
61
|
-
|
|
198
|
+
UpdateType["BreakpointError"] = "BreakpointError";
|
|
62
199
|
/**
|
|
63
200
|
* A compilation error occurred
|
|
64
201
|
* @since protocol 3.1
|
|
65
202
|
*/
|
|
66
|
-
|
|
203
|
+
UpdateType["CompileError"] = "CompileError";
|
|
67
204
|
/**
|
|
68
205
|
* Breakpoints were successfully verified
|
|
69
206
|
* @since protocol 3.2
|
|
70
207
|
*/
|
|
71
|
-
|
|
72
|
-
})(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
* The referenced value is a container (e.g., a list or array)
|
|
91
|
-
*/
|
|
92
|
-
VARIABLE_FLAGS[VARIABLE_FLAGS["isContainer"] = 4] = "isContainer";
|
|
93
|
-
/**
|
|
94
|
-
* The name is included in this VariableInfo
|
|
95
|
-
*/
|
|
96
|
-
VARIABLE_FLAGS[VARIABLE_FLAGS["isNameHere"] = 8] = "isNameHere";
|
|
97
|
-
/**
|
|
98
|
-
* value is reference-counted.
|
|
99
|
-
*/
|
|
100
|
-
VARIABLE_FLAGS[VARIABLE_FLAGS["isRefCounted"] = 16] = "isRefCounted";
|
|
101
|
-
/**
|
|
102
|
-
* value is included in this VariableInfo
|
|
103
|
-
*/
|
|
104
|
-
VARIABLE_FLAGS[VARIABLE_FLAGS["isValueHere"] = 32] = "isValueHere";
|
|
105
|
-
/**
|
|
106
|
-
* Value is container, key lookup is case sensitive
|
|
107
|
-
* @since protocol 3.1.0
|
|
108
|
-
*/
|
|
109
|
-
VARIABLE_FLAGS[VARIABLE_FLAGS["isKeysCaseSensitive"] = 64] = "isKeysCaseSensitive";
|
|
110
|
-
})(VARIABLE_FLAGS = exports.VARIABLE_FLAGS || (exports.VARIABLE_FLAGS = {}));
|
|
111
|
-
var VARIABLE_TYPES;
|
|
112
|
-
(function (VARIABLE_TYPES) {
|
|
113
|
-
VARIABLE_TYPES[VARIABLE_TYPES["AA"] = 1] = "AA";
|
|
114
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Array"] = 2] = "Array";
|
|
115
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Boolean"] = 3] = "Boolean";
|
|
116
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Double"] = 4] = "Double";
|
|
117
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Float"] = 5] = "Float";
|
|
118
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Function"] = 6] = "Function";
|
|
119
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Integer"] = 7] = "Integer";
|
|
120
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Interface"] = 8] = "Interface";
|
|
121
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Invalid"] = 9] = "Invalid";
|
|
122
|
-
VARIABLE_TYPES[VARIABLE_TYPES["List"] = 10] = "List";
|
|
123
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Long_Integer"] = 11] = "Long_Integer";
|
|
124
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Object"] = 12] = "Object";
|
|
125
|
-
VARIABLE_TYPES[VARIABLE_TYPES["String"] = 13] = "String";
|
|
126
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Subroutine"] = 14] = "Subroutine";
|
|
127
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Subtyped_Object"] = 15] = "Subtyped_Object";
|
|
128
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Uninitialized"] = 16] = "Uninitialized";
|
|
129
|
-
VARIABLE_TYPES[VARIABLE_TYPES["Unknown"] = 17] = "Unknown";
|
|
130
|
-
})(VARIABLE_TYPES = exports.VARIABLE_TYPES || (exports.VARIABLE_TYPES = {}));
|
|
131
|
-
//#endregion
|
|
132
|
-
function getUpdateType(value) {
|
|
133
|
-
switch (value) {
|
|
134
|
-
case UPDATE_TYPES.ALL_THREADS_STOPPED:
|
|
135
|
-
return UPDATE_TYPES.ALL_THREADS_STOPPED;
|
|
136
|
-
case UPDATE_TYPES.IO_PORT_OPENED:
|
|
137
|
-
return UPDATE_TYPES.IO_PORT_OPENED;
|
|
138
|
-
case UPDATE_TYPES.THREAD_ATTACHED:
|
|
139
|
-
return UPDATE_TYPES.THREAD_ATTACHED;
|
|
140
|
-
case UPDATE_TYPES.UNDEF:
|
|
141
|
-
return UPDATE_TYPES.UNDEF;
|
|
142
|
-
default:
|
|
143
|
-
return UPDATE_TYPES.UNDEF;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
exports.getUpdateType = getUpdateType;
|
|
208
|
+
UpdateType["BreakpointVerified"] = "BreakpointVerified";
|
|
209
|
+
})(UpdateType = exports.UpdateType || (exports.UpdateType = {}));
|
|
210
|
+
/**
|
|
211
|
+
* The integer values for `UPDATE_TYPE`. Only used for serializing/deserializing over the debug protocol. Use `UpdateType` in your code.
|
|
212
|
+
*/
|
|
213
|
+
var UpdateTypeCode;
|
|
214
|
+
(function (UpdateTypeCode) {
|
|
215
|
+
UpdateTypeCode[UpdateTypeCode["Undefined"] = 0] = "Undefined";
|
|
216
|
+
UpdateTypeCode[UpdateTypeCode["IOPortOpened"] = 1] = "IOPortOpened";
|
|
217
|
+
UpdateTypeCode[UpdateTypeCode["AllThreadsStopped"] = 2] = "AllThreadsStopped";
|
|
218
|
+
UpdateTypeCode[UpdateTypeCode["ThreadAttached"] = 3] = "ThreadAttached";
|
|
219
|
+
UpdateTypeCode[UpdateTypeCode["BreakpointError"] = 4] = "BreakpointError";
|
|
220
|
+
UpdateTypeCode[UpdateTypeCode["CompileError"] = 5] = "CompileError";
|
|
221
|
+
// /**
|
|
222
|
+
// * Breakpoints were successfully verified
|
|
223
|
+
// * @since protocol 3.2
|
|
224
|
+
// */
|
|
225
|
+
UpdateTypeCode[UpdateTypeCode["BreakpointVerified"] = 6] = "BreakpointVerified";
|
|
226
|
+
})(UpdateTypeCode = exports.UpdateTypeCode || (exports.UpdateTypeCode = {}));
|
|
147
227
|
//# sourceMappingURL=Constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../src/debugProtocol/Constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,2EAAc,CAAA;IACd,yEAAa,CAAA;IACb,iFAAiB,CAAA;AACrB,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../src/debugProtocol/Constants.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { ProtocolRequest, ProtocolResponse, ProtocolUpdate } from './events/ProtocolEvent';
|
|
3
|
+
export declare class DebugProtocolClientReplaySession {
|
|
4
|
+
constructor(options: {
|
|
5
|
+
bufferLog: string;
|
|
6
|
+
});
|
|
7
|
+
private disposables;
|
|
8
|
+
/**
|
|
9
|
+
* A dumb tcp server that will simply spit back the server buffer data when needed
|
|
10
|
+
*/
|
|
11
|
+
private server;
|
|
12
|
+
private ioSocket;
|
|
13
|
+
private client;
|
|
14
|
+
private entryIndex;
|
|
15
|
+
private entries;
|
|
16
|
+
private peekEntry;
|
|
17
|
+
private advanceEntry;
|
|
18
|
+
private flushIO;
|
|
19
|
+
private parseBufferLog;
|
|
20
|
+
result: Array<ProtocolRequest | ProtocolResponse | ProtocolUpdate>;
|
|
21
|
+
private finished;
|
|
22
|
+
private controlPort;
|
|
23
|
+
private ioPort;
|
|
24
|
+
run(): Promise<void>;
|
|
25
|
+
private createClient;
|
|
26
|
+
private openIOPort;
|
|
27
|
+
private clientSync;
|
|
28
|
+
private clientActionQueue;
|
|
29
|
+
private clientProcess;
|
|
30
|
+
private finalizeIfDone;
|
|
31
|
+
private createServer;
|
|
32
|
+
private serverActionQueue;
|
|
33
|
+
private serverSync;
|
|
34
|
+
private serverProcessIdx;
|
|
35
|
+
private serverProcess;
|
|
36
|
+
/**
|
|
37
|
+
* Sleep for the amount of time between the two specified entries
|
|
38
|
+
*/
|
|
39
|
+
private sleepForEntryGap;
|
|
40
|
+
destroy(): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
export interface BufferLogEntry {
|
|
43
|
+
type: 'client-to-server' | 'server-to-client' | 'io';
|
|
44
|
+
timestamp: Date;
|
|
45
|
+
buffer: Buffer;
|
|
46
|
+
}
|