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.
Files changed (211) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/CompileErrorProcessor.d.ts +7 -2
  3. package/dist/CompileErrorProcessor.js +64 -69
  4. package/dist/CompileErrorProcessor.js.map +1 -1
  5. package/dist/DeviceInfo.d.ts +1 -0
  6. package/dist/adapters/DebugProtocolAdapter.d.ts +64 -17
  7. package/dist/adapters/DebugProtocolAdapter.js +264 -157
  8. package/dist/adapters/DebugProtocolAdapter.js.map +1 -1
  9. package/dist/adapters/TelnetAdapter.d.ts +8 -3
  10. package/dist/adapters/TelnetAdapter.js +14 -6
  11. package/dist/adapters/TelnetAdapter.js.map +1 -1
  12. package/dist/debugProtocol/Constants.d.ts +171 -81
  13. package/dist/debugProtocol/Constants.js +206 -126
  14. package/dist/debugProtocol/Constants.js.map +1 -1
  15. package/dist/debugProtocol/DebugProtocolClientReplaySession.d.ts +46 -0
  16. package/dist/debugProtocol/DebugProtocolClientReplaySession.js +278 -0
  17. package/dist/debugProtocol/DebugProtocolClientReplaySession.js.map +1 -0
  18. package/dist/debugProtocol/PluginInterface.d.ts +38 -0
  19. package/dist/debugProtocol/PluginInterface.js +86 -0
  20. package/dist/debugProtocol/PluginInterface.js.map +1 -0
  21. package/dist/debugProtocol/ProtocolUtil.d.ts +56 -0
  22. package/dist/debugProtocol/ProtocolUtil.js +164 -0
  23. package/dist/debugProtocol/ProtocolUtil.js.map +1 -0
  24. package/dist/debugProtocol/client/DebugProtocolClient.d.ts +312 -0
  25. package/dist/debugProtocol/client/DebugProtocolClient.js +1095 -0
  26. package/dist/debugProtocol/client/DebugProtocolClient.js.map +1 -0
  27. package/dist/debugProtocol/client/DebugProtocolClientPlugin.d.ts +44 -0
  28. package/dist/debugProtocol/client/DebugProtocolClientPlugin.js +3 -0
  29. package/dist/debugProtocol/client/DebugProtocolClientPlugin.js.map +1 -0
  30. package/dist/debugProtocol/events/ProtocolEvent.d.ts +66 -0
  31. package/dist/debugProtocol/events/ProtocolEvent.js +3 -0
  32. package/dist/debugProtocol/events/ProtocolEvent.js.map +1 -0
  33. package/dist/debugProtocol/events/requests/AddBreakpointsRequest.d.ts +30 -0
  34. package/dist/debugProtocol/events/requests/AddBreakpointsRequest.js +63 -0
  35. package/dist/debugProtocol/events/requests/AddBreakpointsRequest.js.map +1 -0
  36. package/dist/debugProtocol/events/requests/AddConditionalBreakpointsRequest.d.ts +48 -0
  37. package/dist/debugProtocol/events/requests/AddConditionalBreakpointsRequest.js +69 -0
  38. package/dist/debugProtocol/events/requests/AddConditionalBreakpointsRequest.js.map +1 -0
  39. package/dist/debugProtocol/events/requests/ContinueRequest.d.ts +20 -0
  40. package/dist/debugProtocol/events/requests/ContinueRequest.js +40 -0
  41. package/dist/debugProtocol/events/requests/ContinueRequest.js.map +1 -0
  42. package/dist/debugProtocol/events/requests/ExecuteRequest.d.ts +26 -0
  43. package/dist/debugProtocol/events/requests/ExecuteRequest.js +49 -0
  44. package/dist/debugProtocol/events/requests/ExecuteRequest.js.map +1 -0
  45. package/dist/debugProtocol/events/requests/ExitChannelRequest.d.ts +20 -0
  46. package/dist/debugProtocol/events/requests/ExitChannelRequest.js +40 -0
  47. package/dist/debugProtocol/events/requests/ExitChannelRequest.js.map +1 -0
  48. package/dist/debugProtocol/events/requests/HandshakeRequest.d.ts +26 -0
  49. package/dist/debugProtocol/events/requests/HandshakeRequest.js +47 -0
  50. package/dist/debugProtocol/events/requests/HandshakeRequest.js.map +1 -0
  51. package/dist/debugProtocol/events/requests/ListBreakpointsRequest.d.ts +20 -0
  52. package/dist/debugProtocol/events/requests/ListBreakpointsRequest.js +40 -0
  53. package/dist/debugProtocol/events/requests/ListBreakpointsRequest.js.map +1 -0
  54. package/dist/debugProtocol/events/requests/RemoveBreakpointsRequest.d.ts +29 -0
  55. package/dist/debugProtocol/events/requests/RemoveBreakpointsRequest.js +60 -0
  56. package/dist/debugProtocol/events/requests/RemoveBreakpointsRequest.js.map +1 -0
  57. package/dist/debugProtocol/events/requests/StackTraceRequest.d.ts +22 -0
  58. package/dist/debugProtocol/events/requests/StackTraceRequest.js +43 -0
  59. package/dist/debugProtocol/events/requests/StackTraceRequest.js.map +1 -0
  60. package/dist/debugProtocol/events/requests/StepRequest.d.ts +25 -0
  61. package/dist/debugProtocol/events/requests/StepRequest.js +46 -0
  62. package/dist/debugProtocol/events/requests/StepRequest.js.map +1 -0
  63. package/dist/debugProtocol/events/requests/StopRequest.d.ts +20 -0
  64. package/dist/debugProtocol/events/requests/StopRequest.js +39 -0
  65. package/dist/debugProtocol/events/requests/StopRequest.js.map +1 -0
  66. package/dist/debugProtocol/events/requests/ThreadsRequest.d.ts +20 -0
  67. package/dist/debugProtocol/events/requests/ThreadsRequest.js +40 -0
  68. package/dist/debugProtocol/events/requests/ThreadsRequest.js.map +1 -0
  69. package/dist/debugProtocol/events/requests/VariablesRequest.d.ts +59 -0
  70. package/dist/debugProtocol/events/requests/VariablesRequest.js +123 -0
  71. package/dist/debugProtocol/events/requests/VariablesRequest.js.map +1 -0
  72. package/dist/debugProtocol/events/responses/AddBreakpointsResponse.js.map +1 -0
  73. package/dist/debugProtocol/events/responses/AddConditionalBreakpointsResponse.d.ts +3 -0
  74. package/dist/debugProtocol/events/responses/AddConditionalBreakpointsResponse.js +9 -0
  75. package/dist/debugProtocol/events/responses/AddConditionalBreakpointsResponse.js.map +1 -0
  76. package/dist/debugProtocol/events/responses/ExecuteV3Response.d.ts +42 -0
  77. package/dist/debugProtocol/events/responses/ExecuteV3Response.js +94 -0
  78. package/dist/debugProtocol/events/responses/ExecuteV3Response.js.map +1 -0
  79. package/dist/debugProtocol/events/responses/GenericResponse.d.ts +17 -0
  80. package/dist/debugProtocol/events/responses/GenericResponse.js +40 -0
  81. package/dist/debugProtocol/events/responses/GenericResponse.js.map +1 -0
  82. package/dist/debugProtocol/events/responses/GenericV3Response.d.ts +15 -0
  83. package/dist/debugProtocol/events/responses/GenericV3Response.js +38 -0
  84. package/dist/debugProtocol/events/responses/GenericV3Response.js.map +1 -0
  85. package/dist/debugProtocol/events/responses/HandshakeResponse.d.ts +28 -0
  86. package/dist/debugProtocol/events/responses/HandshakeResponse.js +69 -0
  87. package/dist/debugProtocol/events/responses/HandshakeResponse.js.map +1 -0
  88. package/dist/debugProtocol/events/responses/HandshakeV3Response.d.ts +42 -0
  89. package/dist/debugProtocol/events/responses/HandshakeV3Response.js +98 -0
  90. package/dist/debugProtocol/events/responses/HandshakeV3Response.js.map +1 -0
  91. package/dist/debugProtocol/events/responses/ListBreakpointsResponse.d.ts +35 -0
  92. package/dist/debugProtocol/events/responses/ListBreakpointsResponse.js +68 -0
  93. package/dist/debugProtocol/events/responses/ListBreakpointsResponse.js.map +1 -0
  94. package/dist/debugProtocol/events/responses/RemoveBreakpointsResponse.js.map +1 -0
  95. package/dist/debugProtocol/events/responses/StackTraceResponse.d.ts +24 -0
  96. package/dist/debugProtocol/events/responses/StackTraceResponse.js +72 -0
  97. package/dist/debugProtocol/events/responses/StackTraceResponse.js.map +1 -0
  98. package/dist/debugProtocol/events/responses/StackTraceV3Response.d.ts +37 -0
  99. package/dist/debugProtocol/events/responses/StackTraceV3Response.js +67 -0
  100. package/dist/debugProtocol/events/responses/StackTraceV3Response.js.map +1 -0
  101. package/dist/debugProtocol/events/responses/ThreadsResponse.d.ts +54 -0
  102. package/dist/debugProtocol/events/responses/ThreadsResponse.js +80 -0
  103. package/dist/debugProtocol/events/responses/ThreadsResponse.js.map +1 -0
  104. package/dist/debugProtocol/events/responses/VariablesResponse.d.ts +117 -0
  105. package/dist/debugProtocol/events/responses/VariablesResponse.js +335 -0
  106. package/dist/debugProtocol/events/responses/VariablesResponse.js.map +1 -0
  107. package/dist/debugProtocol/events/updates/AllThreadsStoppedUpdate.d.ts +35 -0
  108. package/dist/debugProtocol/events/updates/AllThreadsStoppedUpdate.js +58 -0
  109. package/dist/debugProtocol/events/updates/AllThreadsStoppedUpdate.js.map +1 -0
  110. package/dist/debugProtocol/events/updates/BreakpointErrorUpdate.d.ts +42 -0
  111. package/dist/debugProtocol/events/updates/BreakpointErrorUpdate.js +97 -0
  112. package/dist/debugProtocol/events/updates/BreakpointErrorUpdate.js.map +1 -0
  113. package/dist/debugProtocol/events/updates/BreakpointVerifiedUpdate.d.ts +41 -0
  114. package/dist/debugProtocol/events/updates/BreakpointVerifiedUpdate.js +74 -0
  115. package/dist/debugProtocol/events/updates/BreakpointVerifiedUpdate.js.map +1 -0
  116. package/dist/debugProtocol/events/updates/CompileErrorUpdate.d.ts +60 -0
  117. package/dist/debugProtocol/events/updates/CompileErrorUpdate.js +89 -0
  118. package/dist/debugProtocol/events/updates/CompileErrorUpdate.js.map +1 -0
  119. package/dist/debugProtocol/events/updates/IOPortOpenedUpdate.d.ts +23 -0
  120. package/dist/debugProtocol/events/updates/IOPortOpenedUpdate.js +49 -0
  121. package/dist/debugProtocol/events/updates/IOPortOpenedUpdate.js.map +1 -0
  122. package/dist/debugProtocol/events/updates/ThreadAttachedUpdate.d.ts +26 -0
  123. package/dist/debugProtocol/events/updates/ThreadAttachedUpdate.js +50 -0
  124. package/dist/debugProtocol/events/updates/ThreadAttachedUpdate.js.map +1 -0
  125. package/dist/debugProtocol/server/DebugProtocolServer.d.ts +110 -0
  126. package/dist/debugProtocol/server/DebugProtocolServer.js +306 -0
  127. package/dist/debugProtocol/server/DebugProtocolServer.js.map +1 -0
  128. package/dist/debugProtocol/server/DebugProtocolServerPlugin.d.ts +41 -0
  129. package/dist/debugProtocol/server/DebugProtocolServerPlugin.js +3 -0
  130. package/dist/debugProtocol/server/DebugProtocolServerPlugin.js.map +1 -0
  131. package/dist/debugSession/BrightScriptDebugSession.d.ts +9 -1
  132. package/dist/debugSession/BrightScriptDebugSession.js +178 -89
  133. package/dist/debugSession/BrightScriptDebugSession.js.map +1 -1
  134. package/dist/index.d.ts +2 -3
  135. package/dist/index.js +2 -3
  136. package/dist/index.js.map +1 -1
  137. package/dist/logging.d.ts +1 -0
  138. package/dist/logging.js +4 -2
  139. package/dist/logging.js.map +1 -1
  140. package/dist/managers/ActionQueue.d.ts +7 -1
  141. package/dist/managers/ActionQueue.js +27 -5
  142. package/dist/managers/ActionQueue.js.map +1 -1
  143. package/dist/managers/BreakpointManager.d.ts +82 -27
  144. package/dist/managers/BreakpointManager.js +168 -63
  145. package/dist/managers/BreakpointManager.js.map +1 -1
  146. package/dist/managers/ProjectManager.d.ts +3 -0
  147. package/dist/managers/ProjectManager.js +42 -36
  148. package/dist/managers/ProjectManager.js.map +1 -1
  149. package/dist/util.d.ts +8 -6
  150. package/dist/util.js +36 -19
  151. package/dist/util.js.map +1 -1
  152. package/package.json +14 -5
  153. package/roku-debug-0.20.8.tgz +0 -0
  154. package/dist/debugProtocol/Debugger.d.ts +0 -161
  155. package/dist/debugProtocol/Debugger.js +0 -635
  156. package/dist/debugProtocol/Debugger.js.map +0 -1
  157. package/dist/debugProtocol/responses/AddBreakpointsResponse.js.map +0 -1
  158. package/dist/debugProtocol/responses/BreakpointErrorUpdateResponse.d.ts +0 -32
  159. package/dist/debugProtocol/responses/BreakpointErrorUpdateResponse.js +0 -67
  160. package/dist/debugProtocol/responses/BreakpointErrorUpdateResponse.js.map +0 -1
  161. package/dist/debugProtocol/responses/BreakpointVerifiedUpdateResponse.d.ts +0 -32
  162. package/dist/debugProtocol/responses/BreakpointVerifiedUpdateResponse.js +0 -56
  163. package/dist/debugProtocol/responses/BreakpointVerifiedUpdateResponse.js.map +0 -1
  164. package/dist/debugProtocol/responses/ConnectIOPortResponse.d.ts +0 -10
  165. package/dist/debugProtocol/responses/ConnectIOPortResponse.js +0 -39
  166. package/dist/debugProtocol/responses/ConnectIOPortResponse.js.map +0 -1
  167. package/dist/debugProtocol/responses/ExecuteResponseV3.d.ts +0 -23
  168. package/dist/debugProtocol/responses/ExecuteResponseV3.js +0 -54
  169. package/dist/debugProtocol/responses/ExecuteResponseV3.js.map +0 -1
  170. package/dist/debugProtocol/responses/HandshakeResponse.d.ts +0 -12
  171. package/dist/debugProtocol/responses/HandshakeResponse.js +0 -39
  172. package/dist/debugProtocol/responses/HandshakeResponse.js.map +0 -1
  173. package/dist/debugProtocol/responses/HandshakeResponseV3.d.ts +0 -14
  174. package/dist/debugProtocol/responses/HandshakeResponseV3.js +0 -47
  175. package/dist/debugProtocol/responses/HandshakeResponseV3.js.map +0 -1
  176. package/dist/debugProtocol/responses/ListBreakpointsResponse.d.ts +0 -25
  177. package/dist/debugProtocol/responses/ListBreakpointsResponse.js +0 -65
  178. package/dist/debugProtocol/responses/ListBreakpointsResponse.js.map +0 -1
  179. package/dist/debugProtocol/responses/ProtocolEvent.d.ts +0 -11
  180. package/dist/debugProtocol/responses/ProtocolEvent.js +0 -38
  181. package/dist/debugProtocol/responses/ProtocolEvent.js.map +0 -1
  182. package/dist/debugProtocol/responses/ProtocolEventV3.d.ts +0 -11
  183. package/dist/debugProtocol/responses/ProtocolEventV3.js +0 -42
  184. package/dist/debugProtocol/responses/ProtocolEventV3.js.map +0 -1
  185. package/dist/debugProtocol/responses/RemoveBreakpointsResponse.js.map +0 -1
  186. package/dist/debugProtocol/responses/StackTraceResponse.d.ts +0 -18
  187. package/dist/debugProtocol/responses/StackTraceResponse.js +0 -58
  188. package/dist/debugProtocol/responses/StackTraceResponse.js.map +0 -1
  189. package/dist/debugProtocol/responses/StackTraceResponseV3.d.ts +0 -18
  190. package/dist/debugProtocol/responses/StackTraceResponseV3.js +0 -58
  191. package/dist/debugProtocol/responses/StackTraceResponseV3.js.map +0 -1
  192. package/dist/debugProtocol/responses/ThreadsResponse.d.ts +0 -22
  193. package/dist/debugProtocol/responses/ThreadsResponse.js +0 -63
  194. package/dist/debugProtocol/responses/ThreadsResponse.js.map +0 -1
  195. package/dist/debugProtocol/responses/UndefinedResponse.d.ts +0 -10
  196. package/dist/debugProtocol/responses/UndefinedResponse.js +0 -39
  197. package/dist/debugProtocol/responses/UndefinedResponse.js.map +0 -1
  198. package/dist/debugProtocol/responses/UpdateThreadsResponse.d.ts +0 -25
  199. package/dist/debugProtocol/responses/UpdateThreadsResponse.js +0 -91
  200. package/dist/debugProtocol/responses/UpdateThreadsResponse.js.map +0 -1
  201. package/dist/debugProtocol/responses/VariableResponse.d.ts +0 -27
  202. package/dist/debugProtocol/responses/VariableResponse.js +0 -141
  203. package/dist/debugProtocol/responses/VariableResponse.js.map +0 -1
  204. package/dist/debugProtocol/responses/index.d.ts +0 -11
  205. package/dist/debugProtocol/responses/index.js +0 -24
  206. package/dist/debugProtocol/responses/index.js.map +0 -1
  207. package/roku-debug-0.20.6.tgz +0 -0
  208. /package/dist/debugProtocol/{responses → events/responses}/AddBreakpointsResponse.d.ts +0 -0
  209. /package/dist/debugProtocol/{responses → events/responses}/AddBreakpointsResponse.js +0 -0
  210. /package/dist/debugProtocol/{responses → events/responses}/RemoveBreakpointsResponse.d.ts +0 -0
  211. /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.getUpdateType = exports.VARIABLE_TYPES = exports.VARIABLE_FLAGS = exports.VARIABLE_REQUEST_FLAGS = exports.UPDATE_TYPES = exports.STOP_REASONS = exports.ERROR_CODES = exports.STEP_TYPE = exports.COMMANDS = exports.PROTOCOL_ERROR_CODES = void 0;
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
- var COMMANDS;
11
- (function (COMMANDS) {
12
- COMMANDS[COMMANDS["STOP"] = 1] = "STOP";
13
- COMMANDS[COMMANDS["CONTINUE"] = 2] = "CONTINUE";
14
- COMMANDS[COMMANDS["THREADS"] = 3] = "THREADS";
15
- COMMANDS[COMMANDS["STACKTRACE"] = 4] = "STACKTRACE";
16
- COMMANDS[COMMANDS["VARIABLES"] = 5] = "VARIABLES";
17
- COMMANDS[COMMANDS["STEP"] = 6] = "STEP";
18
- COMMANDS[COMMANDS["ADD_BREAKPOINTS"] = 7] = "ADD_BREAKPOINTS";
19
- COMMANDS[COMMANDS["LIST_BREAKPOINTS"] = 8] = "LIST_BREAKPOINTS";
20
- COMMANDS[COMMANDS["REMOVE_BREAKPOINTS"] = 9] = "REMOVE_BREAKPOINTS";
21
- COMMANDS[COMMANDS["EXECUTE"] = 10] = "EXECUTE";
22
- COMMANDS[COMMANDS["ADD_CONDITIONAL_BREAKPOINTS"] = 11] = "ADD_CONDITIONAL_BREAKPOINTS";
23
- COMMANDS[COMMANDS["EXIT_CHANNEL"] = 122] = "EXIT_CHANNEL";
24
- })(COMMANDS = exports.COMMANDS || (exports.COMMANDS = {}));
25
- var STEP_TYPE;
26
- (function (STEP_TYPE) {
27
- STEP_TYPE[STEP_TYPE["STEP_TYPE_NONE"] = 0] = "STEP_TYPE_NONE";
28
- STEP_TYPE[STEP_TYPE["STEP_TYPE_LINE"] = 1] = "STEP_TYPE_LINE";
29
- STEP_TYPE[STEP_TYPE["STEP_TYPE_OUT"] = 2] = "STEP_TYPE_OUT";
30
- STEP_TYPE[STEP_TYPE["STEP_TYPE_OVER"] = 3] = "STEP_TYPE_OVER";
31
- })(STEP_TYPE = exports.STEP_TYPE || (exports.STEP_TYPE = {}));
32
- //#region RESPONSE CONSTS
33
- var ERROR_CODES;
34
- (function (ERROR_CODES) {
35
- ERROR_CODES[ERROR_CODES["OK"] = 0] = "OK";
36
- ERROR_CODES[ERROR_CODES["OTHER_ERR"] = 1] = "OTHER_ERR";
37
- ERROR_CODES[ERROR_CODES["UNDEFINED_COMMAND"] = 2] = "UNDEFINED_COMMAND";
38
- ERROR_CODES[ERROR_CODES["CANT_CONTINUE"] = 3] = "CANT_CONTINUE";
39
- ERROR_CODES[ERROR_CODES["NOT_STOPPED"] = 4] = "NOT_STOPPED";
40
- ERROR_CODES[ERROR_CODES["INVALID_ARGS"] = 5] = "INVALID_ARGS";
41
- })(ERROR_CODES = exports.ERROR_CODES || (exports.ERROR_CODES = {}));
42
- var STOP_REASONS;
43
- (function (STOP_REASONS) {
44
- STOP_REASONS[STOP_REASONS["UNDEFINED"] = 0] = "UNDEFINED";
45
- STOP_REASONS[STOP_REASONS["NOT_STOPPED"] = 1] = "NOT_STOPPED";
46
- STOP_REASONS[STOP_REASONS["NORMAL_EXIT"] = 2] = "NORMAL_EXIT";
47
- STOP_REASONS[STOP_REASONS["STOP_STATEMENT"] = 3] = "STOP_STATEMENT";
48
- STOP_REASONS[STOP_REASONS["BREAK"] = 4] = "BREAK";
49
- STOP_REASONS[STOP_REASONS["RUNTIME_ERROR"] = 5] = "RUNTIME_ERROR";
50
- })(STOP_REASONS = exports.STOP_REASONS || (exports.STOP_REASONS = {}));
51
- var UPDATE_TYPES;
52
- (function (UPDATE_TYPES) {
53
- UPDATE_TYPES[UPDATE_TYPES["UNDEF"] = 0] = "UNDEF";
54
- UPDATE_TYPES[UPDATE_TYPES["IO_PORT_OPENED"] = 1] = "IO_PORT_OPENED";
55
- UPDATE_TYPES[UPDATE_TYPES["ALL_THREADS_STOPPED"] = 2] = "ALL_THREADS_STOPPED";
56
- UPDATE_TYPES[UPDATE_TYPES["THREAD_ATTACHED"] = 3] = "THREAD_ATTACHED";
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
- UPDATE_TYPES[UPDATE_TYPES["BREAKPOINT_ERROR"] = 4] = "BREAKPOINT_ERROR";
198
+ UpdateType["BreakpointError"] = "BreakpointError";
62
199
  /**
63
200
  * A compilation error occurred
64
201
  * @since protocol 3.1
65
202
  */
66
- UPDATE_TYPES[UPDATE_TYPES["COMPILE_ERROR"] = 5] = "COMPILE_ERROR";
203
+ UpdateType["CompileError"] = "CompileError";
67
204
  /**
68
205
  * Breakpoints were successfully verified
69
206
  * @since protocol 3.2
70
207
  */
71
- UPDATE_TYPES[UPDATE_TYPES["BREAKPOINT_VERIFIED"] = 6] = "BREAKPOINT_VERIFIED";
72
- })(UPDATE_TYPES = exports.UPDATE_TYPES || (exports.UPDATE_TYPES = {}));
73
- var VARIABLE_REQUEST_FLAGS;
74
- (function (VARIABLE_REQUEST_FLAGS) {
75
- VARIABLE_REQUEST_FLAGS[VARIABLE_REQUEST_FLAGS["GET_CHILD_KEYS"] = 1] = "GET_CHILD_KEYS";
76
- VARIABLE_REQUEST_FLAGS[VARIABLE_REQUEST_FLAGS["CASE_SENSITIVITY_OPTIONS"] = 2] = "CASE_SENSITIVITY_OPTIONS";
77
- })(VARIABLE_REQUEST_FLAGS = exports.VARIABLE_REQUEST_FLAGS || (exports.VARIABLE_REQUEST_FLAGS = {}));
78
- var VARIABLE_FLAGS;
79
- (function (VARIABLE_FLAGS) {
80
- /**
81
- * value is a child of the requested variable
82
- * e.g., an element of an array or field of an AA
83
- */
84
- VARIABLE_FLAGS[VARIABLE_FLAGS["isChildKey"] = 1] = "isChildKey";
85
- /**
86
- * value is constant
87
- */
88
- VARIABLE_FLAGS[VARIABLE_FLAGS["isConst"] = 2] = "isConst";
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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,CAAC,KAAK,CAAC;KACjC;AACL,CAAC;AAbD,sCAaC"}
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;;GAEG;AACH,IAAY,OA8DX;AA9DD,WAAY,OAAO;IACf;;;;OAIG;IACH,wBAAa,CAAA;IACb;;OAEG;IACH,gCAAqB,CAAA;IACrB;;OAEG;IACH,8BAAmB,CAAA;IACnB;;OAEG;IACH,oCAAyB,CAAA;IACzB;;OAEG;IACH,kCAAuB,CAAA;IACvB;;;OAGG;IACH,wBAAa,CAAA;IACb;;;;OAIG;IACH,4CAAiC,CAAA;IACjC;;;;OAIG;IACH,8CAAmC,CAAA;IACnC;;;;OAIG;IACH,kDAAuC,CAAA;IACvC;;;;OAIG;IACH,8BAAmB,CAAA;IACnB;;;;OAIG;IACH,kEAAuD,CAAA;IACvD;;OAEG;IACH,sCAA2B,CAAA;AAC/B,CAAC,EA9DW,OAAO,GAAP,eAAO,KAAP,eAAO,QA8DlB;AACD;;GAEG;AACH,IAAY,WAaX;AAbD,WAAY,WAAW;IACnB,6CAAQ,CAAA;IACR,qDAAY,CAAA;IACZ,mDAAW,CAAA;IACX,yDAAc,CAAA;IACd,uDAAa,CAAA;IACb,6CAAQ,CAAA;IACR,iEAAkB,CAAA;IAClB,mEAAmB,CAAA;IACnB,uEAAqB,CAAA;IACrB,oDAAY,CAAA;IACZ,wFAA8B,CAAA;IAC9B,6DAAiB,CAAA;AACrB,CAAC,EAbW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAatB;AAED;;GAEG;AACH,IAAY,QAKX;AALD,WAAY,QAAQ;IAChB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,uBAAW,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IG;IACH,qDAAuC,CAAA;IACvC;;;;;;;;OAQG;IACH,+CAAiC,CAAA;IACjC;;;OAGG;IACH,iDAAmC,CAAA;IACnC;;;OAGG;IACH,2CAA6B,CAAA;IAC7B;;;OAGG;IACH,uDAAyC,CAAA;AAC7C,CAAC,EArCW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAqCrB;AACD;;GAEG;AACH,IAAY,cAYX;AAZD,WAAY,cAAc;IACtB,6DAAa,CAAA;IACb,mEAAgB,CAAA;IAChB,6EAAqB,CAAA;IACrB,uEAAkB,CAAA;IAClB,yEAAmB,CAAA;IACnB,mEAAgB,CAAA;IAChB,MAAM;IACN,4CAA4C;IAC5C,yBAAyB;IACzB,MAAM;IACN,+EAAsB,CAAA;AAC1B,CAAC,EAZW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAYzB"}
@@ -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
+ }