roku-debug 0.20.5 → 0.20.7

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 (214) hide show
  1. package/CHANGELOG.md +17 -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/adapters/TelnetRequestPipeline.d.ts +34 -0
  13. package/dist/adapters/TelnetRequestPipeline.js +35 -22
  14. package/dist/adapters/TelnetRequestPipeline.js.map +1 -1
  15. package/dist/debugProtocol/Constants.d.ts +171 -81
  16. package/dist/debugProtocol/Constants.js +206 -126
  17. package/dist/debugProtocol/Constants.js.map +1 -1
  18. package/dist/debugProtocol/DebugProtocolClientReplaySession.d.ts +46 -0
  19. package/dist/debugProtocol/DebugProtocolClientReplaySession.js +278 -0
  20. package/dist/debugProtocol/DebugProtocolClientReplaySession.js.map +1 -0
  21. package/dist/debugProtocol/PluginInterface.d.ts +38 -0
  22. package/dist/debugProtocol/PluginInterface.js +86 -0
  23. package/dist/debugProtocol/PluginInterface.js.map +1 -0
  24. package/dist/debugProtocol/ProtocolUtil.d.ts +56 -0
  25. package/dist/debugProtocol/ProtocolUtil.js +164 -0
  26. package/dist/debugProtocol/ProtocolUtil.js.map +1 -0
  27. package/dist/debugProtocol/client/DebugProtocolClient.d.ts +310 -0
  28. package/dist/debugProtocol/client/DebugProtocolClient.js +1079 -0
  29. package/dist/debugProtocol/client/DebugProtocolClient.js.map +1 -0
  30. package/dist/debugProtocol/client/DebugProtocolClientPlugin.d.ts +44 -0
  31. package/dist/debugProtocol/client/DebugProtocolClientPlugin.js +3 -0
  32. package/dist/debugProtocol/client/DebugProtocolClientPlugin.js.map +1 -0
  33. package/dist/debugProtocol/events/ProtocolEvent.d.ts +66 -0
  34. package/dist/debugProtocol/events/ProtocolEvent.js +3 -0
  35. package/dist/debugProtocol/events/ProtocolEvent.js.map +1 -0
  36. package/dist/debugProtocol/events/requests/AddBreakpointsRequest.d.ts +30 -0
  37. package/dist/debugProtocol/events/requests/AddBreakpointsRequest.js +63 -0
  38. package/dist/debugProtocol/events/requests/AddBreakpointsRequest.js.map +1 -0
  39. package/dist/debugProtocol/events/requests/AddConditionalBreakpointsRequest.d.ts +48 -0
  40. package/dist/debugProtocol/events/requests/AddConditionalBreakpointsRequest.js +69 -0
  41. package/dist/debugProtocol/events/requests/AddConditionalBreakpointsRequest.js.map +1 -0
  42. package/dist/debugProtocol/events/requests/ContinueRequest.d.ts +20 -0
  43. package/dist/debugProtocol/events/requests/ContinueRequest.js +40 -0
  44. package/dist/debugProtocol/events/requests/ContinueRequest.js.map +1 -0
  45. package/dist/debugProtocol/events/requests/ExecuteRequest.d.ts +26 -0
  46. package/dist/debugProtocol/events/requests/ExecuteRequest.js +49 -0
  47. package/dist/debugProtocol/events/requests/ExecuteRequest.js.map +1 -0
  48. package/dist/debugProtocol/events/requests/ExitChannelRequest.d.ts +20 -0
  49. package/dist/debugProtocol/events/requests/ExitChannelRequest.js +40 -0
  50. package/dist/debugProtocol/events/requests/ExitChannelRequest.js.map +1 -0
  51. package/dist/debugProtocol/events/requests/HandshakeRequest.d.ts +26 -0
  52. package/dist/debugProtocol/events/requests/HandshakeRequest.js +47 -0
  53. package/dist/debugProtocol/events/requests/HandshakeRequest.js.map +1 -0
  54. package/dist/debugProtocol/events/requests/ListBreakpointsRequest.d.ts +20 -0
  55. package/dist/debugProtocol/events/requests/ListBreakpointsRequest.js +40 -0
  56. package/dist/debugProtocol/events/requests/ListBreakpointsRequest.js.map +1 -0
  57. package/dist/debugProtocol/events/requests/RemoveBreakpointsRequest.d.ts +29 -0
  58. package/dist/debugProtocol/events/requests/RemoveBreakpointsRequest.js +60 -0
  59. package/dist/debugProtocol/events/requests/RemoveBreakpointsRequest.js.map +1 -0
  60. package/dist/debugProtocol/events/requests/StackTraceRequest.d.ts +22 -0
  61. package/dist/debugProtocol/events/requests/StackTraceRequest.js +43 -0
  62. package/dist/debugProtocol/events/requests/StackTraceRequest.js.map +1 -0
  63. package/dist/debugProtocol/events/requests/StepRequest.d.ts +25 -0
  64. package/dist/debugProtocol/events/requests/StepRequest.js +46 -0
  65. package/dist/debugProtocol/events/requests/StepRequest.js.map +1 -0
  66. package/dist/debugProtocol/events/requests/StopRequest.d.ts +20 -0
  67. package/dist/debugProtocol/events/requests/StopRequest.js +39 -0
  68. package/dist/debugProtocol/events/requests/StopRequest.js.map +1 -0
  69. package/dist/debugProtocol/events/requests/ThreadsRequest.d.ts +20 -0
  70. package/dist/debugProtocol/events/requests/ThreadsRequest.js +40 -0
  71. package/dist/debugProtocol/events/requests/ThreadsRequest.js.map +1 -0
  72. package/dist/debugProtocol/events/requests/VariablesRequest.d.ts +59 -0
  73. package/dist/debugProtocol/events/requests/VariablesRequest.js +123 -0
  74. package/dist/debugProtocol/events/requests/VariablesRequest.js.map +1 -0
  75. package/dist/debugProtocol/events/responses/AddBreakpointsResponse.js.map +1 -0
  76. package/dist/debugProtocol/events/responses/AddConditionalBreakpointsResponse.d.ts +3 -0
  77. package/dist/debugProtocol/events/responses/AddConditionalBreakpointsResponse.js +9 -0
  78. package/dist/debugProtocol/events/responses/AddConditionalBreakpointsResponse.js.map +1 -0
  79. package/dist/debugProtocol/events/responses/ExecuteV3Response.d.ts +42 -0
  80. package/dist/debugProtocol/events/responses/ExecuteV3Response.js +94 -0
  81. package/dist/debugProtocol/events/responses/ExecuteV3Response.js.map +1 -0
  82. package/dist/debugProtocol/events/responses/GenericResponse.d.ts +17 -0
  83. package/dist/debugProtocol/events/responses/GenericResponse.js +40 -0
  84. package/dist/debugProtocol/events/responses/GenericResponse.js.map +1 -0
  85. package/dist/debugProtocol/events/responses/GenericV3Response.d.ts +15 -0
  86. package/dist/debugProtocol/events/responses/GenericV3Response.js +38 -0
  87. package/dist/debugProtocol/events/responses/GenericV3Response.js.map +1 -0
  88. package/dist/debugProtocol/events/responses/HandshakeResponse.d.ts +28 -0
  89. package/dist/debugProtocol/events/responses/HandshakeResponse.js +69 -0
  90. package/dist/debugProtocol/events/responses/HandshakeResponse.js.map +1 -0
  91. package/dist/debugProtocol/events/responses/HandshakeV3Response.d.ts +42 -0
  92. package/dist/debugProtocol/events/responses/HandshakeV3Response.js +98 -0
  93. package/dist/debugProtocol/events/responses/HandshakeV3Response.js.map +1 -0
  94. package/dist/debugProtocol/events/responses/ListBreakpointsResponse.d.ts +35 -0
  95. package/dist/debugProtocol/events/responses/ListBreakpointsResponse.js +68 -0
  96. package/dist/debugProtocol/events/responses/ListBreakpointsResponse.js.map +1 -0
  97. package/dist/debugProtocol/events/responses/RemoveBreakpointsResponse.js.map +1 -0
  98. package/dist/debugProtocol/events/responses/StackTraceResponse.d.ts +24 -0
  99. package/dist/debugProtocol/events/responses/StackTraceResponse.js +72 -0
  100. package/dist/debugProtocol/events/responses/StackTraceResponse.js.map +1 -0
  101. package/dist/debugProtocol/events/responses/StackTraceV3Response.d.ts +37 -0
  102. package/dist/debugProtocol/events/responses/StackTraceV3Response.js +67 -0
  103. package/dist/debugProtocol/events/responses/StackTraceV3Response.js.map +1 -0
  104. package/dist/debugProtocol/events/responses/ThreadsResponse.d.ts +54 -0
  105. package/dist/debugProtocol/events/responses/ThreadsResponse.js +80 -0
  106. package/dist/debugProtocol/events/responses/ThreadsResponse.js.map +1 -0
  107. package/dist/debugProtocol/events/responses/VariablesResponse.d.ts +117 -0
  108. package/dist/debugProtocol/events/responses/VariablesResponse.js +335 -0
  109. package/dist/debugProtocol/events/responses/VariablesResponse.js.map +1 -0
  110. package/dist/debugProtocol/events/updates/AllThreadsStoppedUpdate.d.ts +35 -0
  111. package/dist/debugProtocol/events/updates/AllThreadsStoppedUpdate.js +58 -0
  112. package/dist/debugProtocol/events/updates/AllThreadsStoppedUpdate.js.map +1 -0
  113. package/dist/debugProtocol/events/updates/BreakpointErrorUpdate.d.ts +42 -0
  114. package/dist/debugProtocol/events/updates/BreakpointErrorUpdate.js +97 -0
  115. package/dist/debugProtocol/events/updates/BreakpointErrorUpdate.js.map +1 -0
  116. package/dist/debugProtocol/events/updates/BreakpointVerifiedUpdate.d.ts +41 -0
  117. package/dist/debugProtocol/events/updates/BreakpointVerifiedUpdate.js +74 -0
  118. package/dist/debugProtocol/events/updates/BreakpointVerifiedUpdate.js.map +1 -0
  119. package/dist/debugProtocol/events/updates/CompileErrorUpdate.d.ts +60 -0
  120. package/dist/debugProtocol/events/updates/CompileErrorUpdate.js +89 -0
  121. package/dist/debugProtocol/events/updates/CompileErrorUpdate.js.map +1 -0
  122. package/dist/debugProtocol/events/updates/IOPortOpenedUpdate.d.ts +23 -0
  123. package/dist/debugProtocol/events/updates/IOPortOpenedUpdate.js +49 -0
  124. package/dist/debugProtocol/events/updates/IOPortOpenedUpdate.js.map +1 -0
  125. package/dist/debugProtocol/events/updates/ThreadAttachedUpdate.d.ts +26 -0
  126. package/dist/debugProtocol/events/updates/ThreadAttachedUpdate.js +50 -0
  127. package/dist/debugProtocol/events/updates/ThreadAttachedUpdate.js.map +1 -0
  128. package/dist/debugProtocol/server/DebugProtocolServer.d.ts +110 -0
  129. package/dist/debugProtocol/server/DebugProtocolServer.js +306 -0
  130. package/dist/debugProtocol/server/DebugProtocolServer.js.map +1 -0
  131. package/dist/debugProtocol/server/DebugProtocolServerPlugin.d.ts +41 -0
  132. package/dist/debugProtocol/server/DebugProtocolServerPlugin.js +3 -0
  133. package/dist/debugProtocol/server/DebugProtocolServerPlugin.js.map +1 -0
  134. package/dist/debugSession/BrightScriptDebugSession.d.ts +9 -1
  135. package/dist/debugSession/BrightScriptDebugSession.js +178 -89
  136. package/dist/debugSession/BrightScriptDebugSession.js.map +1 -1
  137. package/dist/index.d.ts +2 -3
  138. package/dist/index.js +2 -3
  139. package/dist/index.js.map +1 -1
  140. package/dist/logging.d.ts +1 -0
  141. package/dist/logging.js +4 -2
  142. package/dist/logging.js.map +1 -1
  143. package/dist/managers/ActionQueue.d.ts +7 -1
  144. package/dist/managers/ActionQueue.js +27 -5
  145. package/dist/managers/ActionQueue.js.map +1 -1
  146. package/dist/managers/BreakpointManager.d.ts +82 -27
  147. package/dist/managers/BreakpointManager.js +168 -63
  148. package/dist/managers/BreakpointManager.js.map +1 -1
  149. package/dist/managers/ProjectManager.d.ts +3 -0
  150. package/dist/managers/ProjectManager.js +42 -36
  151. package/dist/managers/ProjectManager.js.map +1 -1
  152. package/dist/util.d.ts +8 -6
  153. package/dist/util.js +36 -19
  154. package/dist/util.js.map +1 -1
  155. package/package.json +15 -6
  156. package/roku-debug-0.20.7.tgz +0 -0
  157. package/dist/debugProtocol/Debugger.d.ts +0 -161
  158. package/dist/debugProtocol/Debugger.js +0 -635
  159. package/dist/debugProtocol/Debugger.js.map +0 -1
  160. package/dist/debugProtocol/responses/AddBreakpointsResponse.js.map +0 -1
  161. package/dist/debugProtocol/responses/BreakpointErrorUpdateResponse.d.ts +0 -32
  162. package/dist/debugProtocol/responses/BreakpointErrorUpdateResponse.js +0 -67
  163. package/dist/debugProtocol/responses/BreakpointErrorUpdateResponse.js.map +0 -1
  164. package/dist/debugProtocol/responses/BreakpointVerifiedUpdateResponse.d.ts +0 -32
  165. package/dist/debugProtocol/responses/BreakpointVerifiedUpdateResponse.js +0 -56
  166. package/dist/debugProtocol/responses/BreakpointVerifiedUpdateResponse.js.map +0 -1
  167. package/dist/debugProtocol/responses/ConnectIOPortResponse.d.ts +0 -10
  168. package/dist/debugProtocol/responses/ConnectIOPortResponse.js +0 -39
  169. package/dist/debugProtocol/responses/ConnectIOPortResponse.js.map +0 -1
  170. package/dist/debugProtocol/responses/ExecuteResponseV3.d.ts +0 -23
  171. package/dist/debugProtocol/responses/ExecuteResponseV3.js +0 -54
  172. package/dist/debugProtocol/responses/ExecuteResponseV3.js.map +0 -1
  173. package/dist/debugProtocol/responses/HandshakeResponse.d.ts +0 -12
  174. package/dist/debugProtocol/responses/HandshakeResponse.js +0 -39
  175. package/dist/debugProtocol/responses/HandshakeResponse.js.map +0 -1
  176. package/dist/debugProtocol/responses/HandshakeResponseV3.d.ts +0 -14
  177. package/dist/debugProtocol/responses/HandshakeResponseV3.js +0 -47
  178. package/dist/debugProtocol/responses/HandshakeResponseV3.js.map +0 -1
  179. package/dist/debugProtocol/responses/ListBreakpointsResponse.d.ts +0 -25
  180. package/dist/debugProtocol/responses/ListBreakpointsResponse.js +0 -65
  181. package/dist/debugProtocol/responses/ListBreakpointsResponse.js.map +0 -1
  182. package/dist/debugProtocol/responses/ProtocolEvent.d.ts +0 -11
  183. package/dist/debugProtocol/responses/ProtocolEvent.js +0 -38
  184. package/dist/debugProtocol/responses/ProtocolEvent.js.map +0 -1
  185. package/dist/debugProtocol/responses/ProtocolEventV3.d.ts +0 -11
  186. package/dist/debugProtocol/responses/ProtocolEventV3.js +0 -42
  187. package/dist/debugProtocol/responses/ProtocolEventV3.js.map +0 -1
  188. package/dist/debugProtocol/responses/RemoveBreakpointsResponse.js.map +0 -1
  189. package/dist/debugProtocol/responses/StackTraceResponse.d.ts +0 -18
  190. package/dist/debugProtocol/responses/StackTraceResponse.js +0 -58
  191. package/dist/debugProtocol/responses/StackTraceResponse.js.map +0 -1
  192. package/dist/debugProtocol/responses/StackTraceResponseV3.d.ts +0 -18
  193. package/dist/debugProtocol/responses/StackTraceResponseV3.js +0 -58
  194. package/dist/debugProtocol/responses/StackTraceResponseV3.js.map +0 -1
  195. package/dist/debugProtocol/responses/ThreadsResponse.d.ts +0 -22
  196. package/dist/debugProtocol/responses/ThreadsResponse.js +0 -63
  197. package/dist/debugProtocol/responses/ThreadsResponse.js.map +0 -1
  198. package/dist/debugProtocol/responses/UndefinedResponse.d.ts +0 -10
  199. package/dist/debugProtocol/responses/UndefinedResponse.js +0 -39
  200. package/dist/debugProtocol/responses/UndefinedResponse.js.map +0 -1
  201. package/dist/debugProtocol/responses/UpdateThreadsResponse.d.ts +0 -25
  202. package/dist/debugProtocol/responses/UpdateThreadsResponse.js +0 -91
  203. package/dist/debugProtocol/responses/UpdateThreadsResponse.js.map +0 -1
  204. package/dist/debugProtocol/responses/VariableResponse.d.ts +0 -27
  205. package/dist/debugProtocol/responses/VariableResponse.js +0 -141
  206. package/dist/debugProtocol/responses/VariableResponse.js.map +0 -1
  207. package/dist/debugProtocol/responses/index.d.ts +0 -11
  208. package/dist/debugProtocol/responses/index.js +0 -24
  209. package/dist/debugProtocol/responses/index.js.map +0 -1
  210. package/roku-debug-0.20.5.tgz +0 -0
  211. /package/dist/debugProtocol/{responses → events/responses}/AddBreakpointsResponse.d.ts +0 -0
  212. /package/dist/debugProtocol/{responses → events/responses}/AddBreakpointsResponse.js +0 -0
  213. /package/dist/debugProtocol/{responses → events/responses}/RemoveBreakpointsResponse.d.ts +0 -0
  214. /package/dist/debugProtocol/{responses → events/responses}/RemoveBreakpointsResponse.js +0 -0
@@ -3,27 +3,108 @@ export declare enum PROTOCOL_ERROR_CODES {
3
3
  SUPPORTED = 1,
4
4
  NOT_SUPPORTED = 2
5
5
  }
6
- export declare enum COMMANDS {
7
- STOP = 1,
8
- CONTINUE = 2,
9
- THREADS = 3,
10
- STACKTRACE = 4,
11
- VARIABLES = 5,
12
- STEP = 6,
13
- ADD_BREAKPOINTS = 7,
14
- LIST_BREAKPOINTS = 8,
15
- REMOVE_BREAKPOINTS = 9,
16
- EXECUTE = 10,
17
- ADD_CONDITIONAL_BREAKPOINTS = 11,
18
- EXIT_CHANNEL = 122
6
+ /**
7
+ * The name of commands that can be sent from the client to the server. Think of these like "requests".
8
+ */
9
+ export declare enum Command {
10
+ /**
11
+ * Stop all threads in application. Enter into debugger.
12
+ *
13
+ * Individual threads can not be stopped/started.
14
+ */
15
+ Stop = "Stop",
16
+ /**
17
+ * Exit from debugger and continue execution of all threads.
18
+ */
19
+ Continue = "Continue",
20
+ /**
21
+ * Application threads info
22
+ */
23
+ Threads = "Threads",
24
+ /**
25
+ * Get the stack trace of a specific thread.
26
+ */
27
+ StackTrace = "StackTrace",
28
+ /**
29
+ * Listing of variables accessible from selected thread and stack frame.
30
+ */
31
+ Variables = "Variables",
32
+ /**
33
+ * Execute one step on a specified thread.
34
+ *
35
+ */
36
+ Step = "Step",
37
+ /**
38
+ * Add a dynamic breakpoint.
39
+ *
40
+ * @since protocol 2.0.0 (Roku OS 9.3)
41
+ */
42
+ AddBreakpoints = "AddBreakpoints",
43
+ /**
44
+ * Lists existing dynamic and conditional breakpoints and their status.
45
+ *
46
+ * @since protocol 2.0.0 (Roku OS 9.3)
47
+ */
48
+ ListBreakpoints = "ListBreakpoints",
49
+ /**
50
+ * Removes dynamic breakpoints.
51
+ *
52
+ * @since protocol 2.0.0 (Roku OS 9.3)
53
+ */
54
+ RemoveBreakpoints = "RemoveBreakpoints",
55
+ /**
56
+ * Executes code in a specific stack frame.
57
+ *
58
+ * @since protocol 2.1 (Roku OS 10.5)
59
+ */
60
+ Execute = "Execute",
61
+ /**
62
+ * Adds a conditional breakpoint.
63
+ *
64
+ * @since protocol 3.1.0 (Roku OS 11.5)
65
+ */
66
+ AddConditionalBreakpoints = "AddConditionalBreakpoints",
67
+ /**
68
+ *
69
+ */
70
+ ExitChannel = "ExitChannel"
71
+ }
72
+ /**
73
+ * Only used for serializing/deserializing over the debug protocol. Use `Command` in your code.
74
+ */
75
+ export declare enum CommandCode {
76
+ Stop = 1,
77
+ Continue = 2,
78
+ Threads = 3,
79
+ StackTrace = 4,
80
+ Variables = 5,
81
+ Step = 6,
82
+ AddBreakpoints = 7,
83
+ ListBreakpoints = 8,
84
+ RemoveBreakpoints = 9,
85
+ Execute = 10,
86
+ AddConditionalBreakpoints = 11,
87
+ ExitChannel = 122
88
+ }
89
+ /**
90
+ * Contains an a StepType enum, indicating the type of step action to be executed.
91
+ */
92
+ export declare enum StepType {
93
+ None = "None",
94
+ Line = "Line",
95
+ Out = "Out",
96
+ Over = "Over"
19
97
  }
20
- export declare enum STEP_TYPE {
21
- STEP_TYPE_NONE = 0,
22
- STEP_TYPE_LINE = 1,
23
- STEP_TYPE_OUT = 2,
24
- STEP_TYPE_OVER = 3
98
+ /**
99
+ * Only used for serializing/deserializing over the debug protocol. Use `StepType` in your code.
100
+ */
101
+ export declare enum StepTypeCode {
102
+ None = 0,
103
+ Line = 1,
104
+ Out = 2,
105
+ Over = 3
25
106
  }
26
- export declare enum ERROR_CODES {
107
+ export declare enum ErrorCode {
27
108
  OK = 0,
28
109
  OTHER_ERR = 1,
29
110
  UNDEFINED_COMMAND = 2,
@@ -31,88 +112,97 @@ export declare enum ERROR_CODES {
31
112
  NOT_STOPPED = 4,
32
113
  INVALID_ARGS = 5
33
114
  }
34
- export declare enum STOP_REASONS {
35
- UNDEFINED = 0,
36
- NOT_STOPPED = 1,
37
- NORMAL_EXIT = 2,
38
- STOP_STATEMENT = 3,
39
- BREAK = 4,
40
- RUNTIME_ERROR = 5
115
+ export declare enum ErrorFlags {
116
+ INVALID_VALUE_IN_PATH = 1,
117
+ MISSING_KEY_IN_PATH = 2
41
118
  }
42
- export declare enum UPDATE_TYPES {
43
- UNDEF = 0,
44
- IO_PORT_OPENED = 1,
45
- ALL_THREADS_STOPPED = 2,
46
- THREAD_ATTACHED = 3,
119
+ export declare enum StopReason {
47
120
  /**
48
- * A compilation or runtime error occurred when evaluating the cond_expr of a conditional breakpoint
49
- * @since protocol 3.1
121
+ * Uninitialized stopReason.
50
122
  */
51
- BREAKPOINT_ERROR = 4,
123
+ Undefined = "Undefined",
52
124
  /**
53
- * A compilation error occurred
54
- * @since protocol 3.1
125
+ * Thread is running.
55
126
  */
56
- COMPILE_ERROR = 5,
127
+ NotStopped = "NotStopped",
57
128
  /**
58
- * Breakpoints were successfully verified
59
- * @since protocol 3.2
129
+ * Thread exited.
60
130
  */
61
- BREAKPOINT_VERIFIED = 6
62
- }
63
- export declare enum VARIABLE_REQUEST_FLAGS {
64
- GET_CHILD_KEYS = 1,
65
- CASE_SENSITIVITY_OPTIONS = 2
66
- }
67
- export declare enum VARIABLE_FLAGS {
131
+ NormalExit = "NormalExit",
68
132
  /**
69
- * value is a child of the requested variable
70
- * e.g., an element of an array or field of an AA
133
+ * Stop statement executed.
71
134
  */
72
- isChildKey = 1,
135
+ StopStatement = "StopStatement",
73
136
  /**
74
- * value is constant
137
+ * Another thread in the group encountered an error, this thread completed a step operation, or other reason outside this thread.
75
138
  */
76
- isConst = 2,
139
+ Break = "Break",
77
140
  /**
78
- * The referenced value is a container (e.g., a list or array)
141
+ * Thread stopped because of an error during execution.
79
142
  */
80
- isContainer = 4,
143
+ RuntimeError = "RuntimeError"
144
+ }
145
+ /**
146
+ * Only used for serializing/deserializing over the debug protocol. Use `StopReason` in your code.
147
+ */
148
+ export declare enum StopReasonCode {
149
+ Undefined = 0,
150
+ NotStopped = 1,
151
+ NormalExit = 2,
152
+ StopStatement = 3,
153
+ Break = 4,
154
+ RuntimeError = 5
155
+ }
156
+ /**
157
+ * Human-readable UpdateType values. To get the codes, use the `UpdateTypeCode` enum
158
+ */
159
+ export declare enum UpdateType {
160
+ Undefined = "Undefined",
161
+ /**
162
+ * 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.
163
+ */
164
+ IOPortOpened = "IOPortOpened",
81
165
  /**
82
- * The name is included in this VariableInfo
166
+ * All threads are stopped and an ALL_THREADS_STOPPED message is sent to the debugging client.
167
+ *
168
+ * The data field includes information on why the threads were stopped.
83
169
  */
84
- isNameHere = 8,
170
+ AllThreadsStopped = "AllThreadsStopped",
85
171
  /**
86
- * value is reference-counted.
172
+ * 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
173
+ * debugger so that the debugger can inspect the thread, its stack frames, and local variables.
174
+ *
175
+ * Additionally, when a thread executes a step operation, that thread detaches from the debugger temporarily,
176
+ * 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.
177
+ *
178
+ * The data field includes information on why the threads were stopped
87
179
  */
88
- isRefCounted = 16,
180
+ ThreadAttached = "ThreadAttached",
89
181
  /**
90
- * value is included in this VariableInfo
182
+ * A compilation or runtime error occurred when evaluating the cond_expr of a conditional breakpoint
183
+ * @since protocol 3.1
91
184
  */
92
- isValueHere = 32,
185
+ BreakpointError = "BreakpointError",
93
186
  /**
94
- * Value is container, key lookup is case sensitive
95
- * @since protocol 3.1.0
187
+ * A compilation error occurred
188
+ * @since protocol 3.1
189
+ */
190
+ CompileError = "CompileError",
191
+ /**
192
+ * Breakpoints were successfully verified
193
+ * @since protocol 3.2
96
194
  */
97
- isKeysCaseSensitive = 64
195
+ BreakpointVerified = "BreakpointVerified"
98
196
  }
99
- export declare enum VARIABLE_TYPES {
100
- AA = 1,
101
- Array = 2,
102
- Boolean = 3,
103
- Double = 4,
104
- Float = 5,
105
- Function = 6,
106
- Integer = 7,
107
- Interface = 8,
108
- Invalid = 9,
109
- List = 10,
110
- Long_Integer = 11,
111
- Object = 12,
112
- String = 13,
113
- Subroutine = 14,
114
- Subtyped_Object = 15,
115
- Uninitialized = 16,
116
- Unknown = 17
197
+ /**
198
+ * The integer values for `UPDATE_TYPE`. Only used for serializing/deserializing over the debug protocol. Use `UpdateType` in your code.
199
+ */
200
+ export declare enum UpdateTypeCode {
201
+ Undefined = 0,
202
+ IOPortOpened = 1,
203
+ AllThreadsStopped = 2,
204
+ ThreadAttached = 3,
205
+ BreakpointError = 4,
206
+ CompileError = 5,
207
+ BreakpointVerified = 6
117
208
  }
118
- export declare function getUpdateType(value: number): UPDATE_TYPES;
@@ -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