roku-debug 0.20.6 → 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 (211) hide show
  1. package/CHANGELOG.md +6 -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 +310 -0
  25. package/dist/debugProtocol/client/DebugProtocolClient.js +1079 -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.7.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,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProtocolEvent = void 0;
4
- const smart_buffer_1 = require("smart-buffer");
5
- class ProtocolEvent {
6
- constructor(buffer) {
7
- this.success = false;
8
- this.readOffset = 0;
9
- // response fields
10
- this.packetLength = 0;
11
- this.requestId = -1;
12
- this.updateType = -1;
13
- this.errorCode = -1;
14
- this.data = -1;
15
- // The smallest a request response can be
16
- if (buffer.byteLength >= 8) {
17
- try {
18
- let bufferReader = smart_buffer_1.SmartBuffer.fromBuffer(buffer);
19
- this.requestId = bufferReader.readUInt32LE(); // request_id
20
- this.errorCode = bufferReader.readUInt32LE(); // error_code
21
- // Any request id less then one is an update and we should not process it here
22
- if (this.requestId > 0) {
23
- this.readOffset = bufferReader.readOffset;
24
- }
25
- else if (this.requestId === 0) {
26
- this.updateType = bufferReader.readUInt32LE();
27
- }
28
- this.readOffset = bufferReader.readOffset;
29
- this.success = true;
30
- }
31
- catch (error) {
32
- // Could not parse
33
- }
34
- }
35
- }
36
- }
37
- exports.ProtocolEvent = ProtocolEvent;
38
- //# sourceMappingURL=ProtocolEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProtocolEvent.js","sourceRoot":"","sources":["../../../src/debugProtocol/responses/ProtocolEvent.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAE3C,MAAa,aAAa;IACtB,YAAY,MAAc;QAsBnB,YAAO,GAAG,KAAK,CAAC;QAChB,eAAU,GAAG,CAAC,CAAC;QAEtB,kBAAkB;QACX,iBAAY,GAAG,CAAC,CAAC;QACjB,cAAS,GAAG,CAAC,CAAC,CAAC;QACf,eAAU,GAAG,CAAC,CAAC,CAAC;QAChB,cAAS,GAAG,CAAC,CAAC,CAAC;QACf,SAAI,GAAG,CAAC,CAAC,CAAC;QA7Bb,yCAAyC;QACzC,IAAI,MAAM,CAAC,UAAU,IAAI,CAAC,EAAE;YACxB,IAAI;gBACA,IAAI,YAAY,GAAG,0BAAW,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;gBAClD,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC,CAAC,aAAa;gBAC3D,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC,CAAC,aAAa;gBAE3D,8EAA8E;gBAC9E,IAAI,IAAI,CAAC,SAAS,GAAG,CAAC,EAAE;oBACpB,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;iBAC7C;qBAAM,IAAI,IAAI,CAAC,SAAS,KAAK,CAAC,EAAE;oBAC7B,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;iBACjD;gBACD,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;gBAC1C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;aACvB;YAAC,OAAO,KAAK,EAAE;gBACZ,kBAAkB;aACrB;SACJ;IACL,CAAC;CAWJ;AAhCD,sCAgCC"}
@@ -1,11 +0,0 @@
1
- /// <reference types="node" />
2
- export declare class ProtocolEventV3 {
3
- constructor(buffer: Buffer);
4
- success: boolean;
5
- readOffset: number;
6
- packetLength: number;
7
- requestId: number;
8
- updateType: number;
9
- errorCode: number;
10
- data: number;
11
- }
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProtocolEventV3 = void 0;
4
- const smart_buffer_1 = require("smart-buffer");
5
- class ProtocolEventV3 {
6
- constructor(buffer) {
7
- this.success = false;
8
- this.readOffset = 0;
9
- // response fields
10
- this.packetLength = 0;
11
- this.requestId = -1;
12
- this.updateType = -1;
13
- this.errorCode = -1;
14
- this.data = -1;
15
- // The smallest a request response can be
16
- if (buffer.byteLength >= 12) {
17
- try {
18
- let bufferReader = smart_buffer_1.SmartBuffer.fromBuffer(buffer);
19
- this.packetLength = bufferReader.readUInt32LE(); // packet_length
20
- this.requestId = bufferReader.readUInt32LE(); // request_id
21
- this.errorCode = bufferReader.readUInt32LE(); // error_code
22
- if (bufferReader.length < this.packetLength) {
23
- throw new Error(`Incomplete packet. Bytes received: ${bufferReader.length}/${this.packetLength}`);
24
- }
25
- // Any request id less then one is an update and we should not process it here
26
- if (this.requestId > 0) {
27
- this.readOffset = bufferReader.readOffset;
28
- }
29
- else if (this.requestId === 0) {
30
- this.updateType = bufferReader.readUInt32LE();
31
- }
32
- this.readOffset = bufferReader.readOffset;
33
- this.success = true;
34
- }
35
- catch (error) {
36
- // Could not parse
37
- }
38
- }
39
- }
40
- }
41
- exports.ProtocolEventV3 = ProtocolEventV3;
42
- //# sourceMappingURL=ProtocolEventV3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProtocolEventV3.js","sourceRoot":"","sources":["../../../src/debugProtocol/responses/ProtocolEventV3.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAE3C,MAAa,eAAe;IACxB,YAAY,MAAc;QA0BnB,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@
1
- {"version":3,"file":"RemoveBreakpointsResponse.js","sourceRoot":"","sources":["../../../src/debugProtocol/responses/RemoveBreakpointsResponse.ts"],"names":[],"mappings":";;;AAAA,uEAAoE;AAEpE,wFAAwF;AACxF,MAAa,yBAA0B,SAAQ,iDAAuB;CAAI;AAA1E,8DAA0E"}
@@ -1,18 +0,0 @@
1
- /// <reference types="node" />
2
- import { SmartBuffer } from 'smart-buffer';
3
- export declare class StackTraceResponse {
4
- constructor(buffer: Buffer);
5
- success: boolean;
6
- readOffset: number;
7
- requestId: number;
8
- errorCode: number;
9
- stackSize: number;
10
- entries: any[];
11
- }
12
- export declare class StackEntry {
13
- constructor(bufferReader: SmartBuffer);
14
- success: boolean;
15
- lineNumber: number;
16
- functionName: string;
17
- fileName: string;
18
- }
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StackEntry = exports.StackTraceResponse = void 0;
4
- const path = require("path");
5
- const smart_buffer_1 = require("smart-buffer");
6
- const util_1 = require("../../util");
7
- class StackTraceResponse {
8
- constructor(buffer) {
9
- this.success = false;
10
- this.readOffset = 0;
11
- // response fields
12
- this.requestId = -1;
13
- this.errorCode = -1;
14
- this.stackSize = -1;
15
- this.entries = [];
16
- // The smallest a stacktrace request response can be
17
- if (buffer.byteLength >= 8) {
18
- try {
19
- let bufferReader = smart_buffer_1.SmartBuffer.fromBuffer(buffer);
20
- this.requestId = bufferReader.readUInt32LE();
21
- // Any request id less then one is an update and we should not process it here
22
- if (this.requestId > 0) {
23
- this.errorCode = bufferReader.readUInt32LE();
24
- this.stackSize = bufferReader.readUInt32LE();
25
- for (let i = 0; i < this.stackSize; i++) {
26
- let stackEntry = new StackEntry(bufferReader);
27
- if (stackEntry.success) {
28
- // All the necessary stack entry data was present. Push to the entries array.
29
- this.entries.push(stackEntry);
30
- }
31
- }
32
- this.readOffset = bufferReader.readOffset;
33
- this.success = (this.entries.length === this.stackSize);
34
- }
35
- }
36
- catch (error) {
37
- // Could not parse
38
- }
39
- }
40
- }
41
- }
42
- exports.StackTraceResponse = StackTraceResponse;
43
- class StackEntry {
44
- constructor(bufferReader) {
45
- this.success = false;
46
- // response fields
47
- this.lineNumber = -1;
48
- this.lineNumber = bufferReader.readUInt32LE();
49
- // NOTE: this is documented as being function name then file name but it is being returned by the device backwards.
50
- this.fileName = util_1.util.readStringNT(bufferReader);
51
- this.functionName = util_1.util.readStringNT(bufferReader);
52
- let fileExtension = path.extname(this.fileName).toLowerCase();
53
- // NOTE:Make sure we have a full valid path (?? can be valid because the device might not know the file).
54
- this.success = (fileExtension === '.brs' || fileExtension === '.xml' || this.fileName === '??');
55
- }
56
- }
57
- exports.StackEntry = StackEntry;
58
- //# sourceMappingURL=StackTraceResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StackTraceResponse.js","sourceRoot":"","sources":["../../../src/debugProtocol/responses/StackTraceResponse.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,+CAA2C;AAC3C,qCAAkC;AAElC,MAAa,kBAAkB;IAE3B,YAAY,MAAc;QA4BnB,YAAO,GAAG,KAAK,CAAC;QAChB,eAAU,GAAG,CAAC,CAAC;QAEtB,kBAAkB;QACX,cAAS,GAAG,CAAC,CAAC,CAAC;QACf,cAAS,GAAG,CAAC,CAAC,CAAC;QACf,cAAS,GAAG,CAAC,CAAC,CAAC;QACf,YAAO,GAAG,EAAE,CAAC;QAlChB,oDAAoD;QACpD,IAAI,MAAM,CAAC,UAAU,IAAI,CAAC,EAAE;YACxB,IAAI;gBACA,IAAI,YAAY,GAAG,0BAAW,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;gBAClD,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;gBAE7C,8EAA8E;gBAC9E,IAAI,IAAI,CAAC,SAAS,GAAG,CAAC,EAAE;oBACpB,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;oBAC7C,IAAI,C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@@
1
- /// <reference types="node" />
2
- import { SmartBuffer } from 'smart-buffer';
3
- export declare class StackTraceResponseV3 {
4
- constructor(buffer: Buffer);
5
- success: boolean;
6
- readOffset: number;
7
- requestId: number;
8
- errorCode: number;
9
- stackSize: number;
10
- entries: any[];
11
- }
12
- export declare class StackEntryV3 {
13
- constructor(bufferReader: SmartBuffer);
14
- success: boolean;
15
- lineNumber: number;
16
- functionName: string;
17
- fileName: string;
18
- }
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StackEntryV3 = exports.StackTraceResponseV3 = void 0;
4
- const path = require("path");
5
- const smart_buffer_1 = require("smart-buffer");
6
- const util_1 = require("../../util");
7
- class StackTraceResponseV3 {
8
- constructor(buffer) {
9
- this.success = false;
10
- this.readOffset = 0;
11
- // response fields
12
- this.requestId = -1;
13
- this.errorCode = -1;
14
- this.stackSize = -1;
15
- this.entries = [];
16
- // The smallest a stacktrace request response can be
17
- if (buffer.byteLength >= 8) {
18
- try {
19
- let bufferReader = smart_buffer_1.SmartBuffer.fromBuffer(buffer);
20
- this.requestId = bufferReader.readUInt32LE();
21
- // Any request id less then one is an update and we should not process it here
22
- if (this.requestId > 0) {
23
- this.errorCode = bufferReader.readUInt32LE();
24
- this.stackSize = bufferReader.readUInt32LE();
25
- for (let i = 0; i < this.stackSize; i++) {
26
- let stackEntry = new StackEntryV3(bufferReader);
27
- if (stackEntry.success) {
28
- // All the necessary stack entry data was present. Push to the entries array.
29
- this.entries.push(stackEntry);
30
- }
31
- }
32
- this.readOffset = bufferReader.readOffset;
33
- this.success = (this.entries.length === this.stackSize);
34
- }
35
- }
36
- catch (error) {
37
- // Could not parse
38
- }
39
- }
40
- }
41
- }
42
- exports.StackTraceResponseV3 = StackTraceResponseV3;
43
- class StackEntryV3 {
44
- constructor(bufferReader) {
45
- this.success = false;
46
- // response fields
47
- this.lineNumber = -1;
48
- this.lineNumber = bufferReader.readUInt32LE();
49
- // NOTE: this is documented as being function name then file name but it is being returned by the device backwards.
50
- this.functionName = util_1.util.readStringNT(bufferReader);
51
- this.fileName = util_1.util.readStringNT(bufferReader);
52
- let fileExtension = path.extname(this.fileName).toLowerCase();
53
- // NOTE:Make sure we have a full valid path (?? can be valid because the device might not know the file).
54
- this.success = (fileExtension === '.brs' || fileExtension === '.xml' || this.fileName === '??');
55
- }
56
- }
57
- exports.StackEntryV3 = StackEntryV3;
58
- //# sourceMappingURL=StackTraceResponseV3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StackTraceResponseV3.js","sourceRoot":"","sources":["../../../src/debugProtocol/responses/StackTraceResponseV3.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,+CAA2C;AAC3C,qCAAkC;AAElC,MAAa,oBAAoB;IAE7B,YAAY,MAAc;QA4BnB,YAAO,GAAG,KAAK,CAAC;QAChB,eAAU,GAAG,CAAC,CAAC;QAEtB,kBAAkB;QACX,cAAS,GAAG,CAAC,CAAC,CAAC;QACf,cAAS,GAAG,CAAC,CAAC,CAAC;QACf,cAAS,GAAG,CAAC,CAAC,CAAC;QACf,YAAO,GAAG,EAAE,CAAC;QAlChB,oDAAoD;QACpD,IAAI,MAAM,CAAC,UAAU,IAAI,CAAC,EAAE;YACxB,IAAI;gBACA,IAAI,YAAY,GAAG,0BAAW,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;gBAClD,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;gBAE7C,8EAA8E;gBAC9E,IAAI,IAAI,CAAC,SAAS,GAAG,CAAC,EAAE;oBACpB,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;oBAC7C,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;oBAE7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE;wBACrC,IAAI,UAAU,GAAG,IAAI,YAAY,CAAC,YAAY,CAAC,CAAC;wBAChD,IAAI,UAAU,CAAC,OAAO,EAAE;4BACpB,6EAA6E;4BAC7E,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;yBACjC;qBACJ;oBAED,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;oBAC1C,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC;iBAC3D;aACJ;YAAC,OAAO,KAAK,EAAE;gBACZ,kBAAkB;aACrB;SACJ;IACL,CAAC;CASJ;AAtCD,oDAsCC;AAED,MAAa,YAAY;IAErB,YAAY,YAAyB;QAU9B,YAAO,GAAG,KAAK,CAAC;QAEvB,kBAAkB;QACX,eAAU,GAAG,CAAC,CAAC,CAAC;QAZnB,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;QAC9C,mHAAmH;QACnH,IAAI,CAAC,YAAY,GAAG,WAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;QACpD,IAAI,CAAC,QAAQ,GAAG,WAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;QAEhD,IAAI,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;QAC9D,yGAAyG;QACzG,IAAI,CAAC,OAAO,GAAG,CAAC,aAAa,KAAK,MAAM,IAAI,aAAa,KAAK,MAAM,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC;IACpG,CAAC;CAOJ;AAlBD,oCAkBC"}
@@ -1,22 +0,0 @@
1
- /// <reference types="node" />
2
- import { SmartBuffer } from 'smart-buffer';
3
- export declare class ThreadsResponse {
4
- constructor(buffer: Buffer);
5
- success: boolean;
6
- readOffset: number;
7
- requestId: number;
8
- errorCode: number;
9
- threadsCount: number;
10
- threads: any[];
11
- }
12
- export declare class ThreadInfo {
13
- constructor(bufferReader: SmartBuffer);
14
- success: boolean;
15
- isPrimary: boolean;
16
- stopReason: string;
17
- stopReasonDetail: string;
18
- lineNumber: number;
19
- functionName: string;
20
- fileName: string;
21
- codeSnippet: string;
22
- }
@@ -1,63 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThreadInfo = exports.ThreadsResponse = void 0;
4
- const path = require("path");
5
- const smart_buffer_1 = require("smart-buffer");
6
- const Constants_1 = require("../Constants");
7
- const util_1 = require("../../util");
8
- class ThreadsResponse {
9
- constructor(buffer) {
10
- this.success = false;
11
- this.readOffset = 0;
12
- // response fields
13
- this.requestId = -1;
14
- this.errorCode = -1;
15
- this.threadsCount = -1;
16
- this.threads = [];
17
- // The smallest a threads request response can be
18
- if (buffer.byteLength >= 21) {
19
- try {
20
- let bufferReader = smart_buffer_1.SmartBuffer.fromBuffer(buffer);
21
- this.requestId = bufferReader.readUInt32LE();
22
- // Any request id less then one is an update and we should not process it here
23
- if (this.requestId > 0) {
24
- this.errorCode = bufferReader.readUInt32LE();
25
- this.threadsCount = bufferReader.readUInt32LE();
26
- for (let i = 0; i < this.threadsCount; i++) {
27
- let stackEntry = new ThreadInfo(bufferReader);
28
- if (stackEntry.success) {
29
- // All the necessary stack entry data was present. Push to the entries array.
30
- this.threads.push(stackEntry);
31
- }
32
- }
33
- this.readOffset = bufferReader.readOffset;
34
- this.success = (this.threads.length === this.threadsCount);
35
- }
36
- }
37
- catch (error) {
38
- // Could not parse
39
- }
40
- }
41
- }
42
- }
43
- exports.ThreadsResponse = ThreadsResponse;
44
- class ThreadInfo {
45
- constructor(bufferReader) {
46
- this.success = false;
47
- this.lineNumber = -1;
48
- // NOTE: The docs say the flags should be unit8 and uint32. In testing it seems like they are sending uint32 but meant to send unit8.
49
- // eslint-disable-next-line no-bitwise
50
- this.isPrimary = (bufferReader.readUInt32LE() & 0x01) > 0;
51
- this.stopReason = Constants_1.STOP_REASONS[bufferReader.readUInt8()];
52
- this.stopReasonDetail = util_1.util.readStringNT(bufferReader);
53
- this.lineNumber = bufferReader.readUInt32LE();
54
- this.functionName = util_1.util.readStringNT(bufferReader);
55
- this.fileName = util_1.util.readStringNT(bufferReader);
56
- this.codeSnippet = util_1.util.readStringNT(bufferReader);
57
- let fileExtension = path.extname(this.fileName).toLowerCase();
58
- // NOTE: Make sure we have a full valid path (?? can be valid because the device might not know the file) and that we have a codeSnippet.
59
- this.success = (fileExtension === '.brs' || fileExtension === '.xml' || this.fileName === '??') && this.codeSnippet.length > 1;
60
- }
61
- }
62
- exports.ThreadInfo = ThreadInfo;
63
- //# sourceMappingURL=ThreadsResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThreadsResponse.js","sourceRoot":"","sources":["../../../src/debugProtocol/responses/ThreadsResponse.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,+CAA2C;AAC3C,4CAA4C;AAC5C,qCAAkC;AAElC,MAAa,eAAe;IAExB,YAAY,MAAc;QA4BnB,YAAO,GAAG,KAAK,CAAC;QAChB,eAAU,GAAG,CAAC,CAAC;QAEtB,kBAAkB;QACX,cAAS,GAAG,CAAC,CAAC,CAAC;QACf,cAAS,GAAG,CAAC,CAAC,CAAC;QACf,iBAAY,GAAG,CAAC,CAAC,CAAC;QAClB,YAAO,GAAG,EAAE,CAAC;QAlChB,iDAAiD;QACjD,IAAI,MAAM,CAAC,UAAU,IAAI,EAAE,EAAE;YACzB,IAAI;gBACA,IAAI,YAAY,GAAG,0BAAW,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;gBAClD,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;gBAE7C,8EAA8E;gBAC9E,IAAI,IAAI,CAAC,SAAS,GAAG,CAAC,EAAE;oBACpB,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;oBAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC,YA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AEnD,IAAI,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;QAC9D,yIAAyI;QACzI,IAAI,CAAC,OAAO,GAAG,CAAC,aAAa,KAAK,MAAM,IAAI,aAAa,KAAK,MAAM,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;IACnI,CAAC;CAWJ;AA3BD,gCA2BC"}
@@ -1,10 +0,0 @@
1
- /// <reference types="node" />
2
- export declare class UndefinedResponse {
3
- constructor(buffer: Buffer);
4
- success: boolean;
5
- readOffset: number;
6
- requestId: number;
7
- errorCode: number;
8
- updateType: number;
9
- data: number;
10
- }
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UndefinedResponse = void 0;
4
- const smart_buffer_1 = require("smart-buffer");
5
- const Constants_1 = require("../Constants");
6
- class UndefinedResponse {
7
- constructor(buffer) {
8
- this.success = false;
9
- this.readOffset = 0;
10
- // response fields
11
- this.requestId = -1;
12
- this.errorCode = -1;
13
- this.updateType = -1;
14
- this.data = -1;
15
- // The minimum size of a undefined response
16
- if (buffer.byteLength >= 12) {
17
- try {
18
- let bufferReader = smart_buffer_1.SmartBuffer.fromBuffer(buffer);
19
- this.requestId = bufferReader.readUInt32LE();
20
- // Updates will always have an id of zero because we didn't ask for this information
21
- if (this.requestId === 0) {
22
- this.errorCode = bufferReader.readUInt32LE();
23
- this.updateType = bufferReader.readUInt32LE();
24
- // Only handle undefined events in this class
25
- if (this.updateType === Constants_1.UPDATE_TYPES.UNDEF) {
26
- this.data = bufferReader.readUInt8();
27
- this.readOffset = bufferReader.readOffset;
28
- this.success = true;
29
- }
30
- }
31
- }
32
- catch (error) {
33
- // Could not process
34
- }
35
- }
36
- }
37
- }
38
- exports.UndefinedResponse = UndefinedResponse;
39
- //# sourceMappingURL=UndefinedResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UndefinedResponse.js","sourceRoot":"","sources":["../../../src/debugProtocol/responses/UndefinedResponse.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,4CAA4C;AAE5C,MAAa,iBAAiB;IAE1B,YAAY,MAAc;QAwBnB,YAAO,GAAG,KAAK,CAAC;QAChB,eAAU,GAAG,CAAC,CAAC;QAEtB,kBAAkB;QACX,cAAS,GAAG,CAAC,CAAC,CAAC;QACf,cAAS,GAAG,CAAC,CAAC,CAAC;QACf,eAAU,GAAG,CAAC,CAAC,CAAC;QAChB,SAAI,GAAG,CAAC,CAAC,CAAC;QA9Bb,2CAA2C;QAC3C,IAAI,MAAM,CAAC,UAAU,IAAI,EAAE,EAAE;YACzB,IAAI;gBACA,IAAI,YAAY,GAAG,0BAAW,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;gBAClD,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;gBAE7C,oFAAoF;gBACpF,IAAI,IAAI,CAAC,SAAS,KAAK,CAAC,EAAE;oBACtB,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;oBAC7C,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;oBAE9C,6CAA6C;oBAC7C,IAAI,IAAI,CAAC,UAAU,KAAK,wBAAY,CAAC,KAAK,EAAE;wBACxC,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,SAAS,EAAE,CAAC;wBACrC,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;wBAC1C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;qBACvB;iBACJ;aACJ;YAAC,OAAO,KAAK,EAAE;gBACZ,oBAAoB;aACvB;SACJ;IACL,CAAC;CASJ;AAlCD,8CAkCC"}
@@ -1,25 +0,0 @@
1
- /// <reference types="node" />
2
- import { SmartBuffer } from 'smart-buffer';
3
- export declare class UpdateThreadsResponse {
4
- constructor(buffer: Buffer);
5
- success: boolean;
6
- readOffset: number;
7
- requestId: number;
8
- errorCode: number;
9
- updateType: number;
10
- data: ThreadAttached | ThreadsStopped;
11
- }
12
- export declare class ThreadsStopped {
13
- constructor(bufferReader: SmartBuffer);
14
- success: boolean;
15
- primaryThreadIndex: number;
16
- stopReason: number;
17
- stopReasonDetail: string;
18
- }
19
- export declare class ThreadAttached {
20
- constructor(bufferReader: SmartBuffer);
21
- success: boolean;
22
- threadIndex: number;
23
- stopReason: number;
24
- stopReasonDetail: string;
25
- }
@@ -1,91 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThreadAttached = exports.ThreadsStopped = exports.UpdateThreadsResponse = void 0;
4
- const smart_buffer_1 = require("smart-buffer");
5
- const Constants_1 = require("../Constants");
6
- const util_1 = require("../../util");
7
- class UpdateThreadsResponse {
8
- constructor(buffer) {
9
- this.success = false;
10
- this.readOffset = 0;
11
- // response fields
12
- this.requestId = -1;
13
- this.errorCode = -1;
14
- this.updateType = -1;
15
- if (buffer.byteLength >= 12) {
16
- try {
17
- let bufferReader = smart_buffer_1.SmartBuffer.fromBuffer(buffer);
18
- this.requestId = bufferReader.readUInt32LE();
19
- if (this.requestId === 0) {
20
- this.errorCode = bufferReader.readUInt32LE();
21
- this.updateType = bufferReader.readUInt32LE();
22
- let threadsUpdate;
23
- if (this.updateType === Constants_1.UPDATE_TYPES.ALL_THREADS_STOPPED) {
24
- threadsUpdate = new ThreadsStopped(bufferReader);
25
- }
26
- else if (this.updateType === Constants_1.UPDATE_TYPES.THREAD_ATTACHED) {
27
- threadsUpdate = new ThreadAttached(bufferReader);
28
- }
29
- if (threadsUpdate === null || threadsUpdate === void 0 ? void 0 : threadsUpdate.success) {
30
- this.data = threadsUpdate;
31
- this.readOffset = bufferReader.readOffset;
32
- this.success = true;
33
- }
34
- }
35
- }
36
- catch (error) {
37
- // Can't be parsed
38
- }
39
- }
40
- }
41
- }
42
- exports.UpdateThreadsResponse = UpdateThreadsResponse;
43
- class ThreadsStopped {
44
- constructor(bufferReader) {
45
- this.success = false;
46
- // response fields
47
- this.primaryThreadIndex = -1;
48
- this.stopReason = -1;
49
- if (bufferReader.length >= bufferReader.readOffset + 6) {
50
- this.primaryThreadIndex = bufferReader.readInt32LE();
51
- this.stopReason = getStopReason(bufferReader.readUInt8());
52
- this.stopReasonDetail = util_1.util.readStringNT(bufferReader);
53
- this.success = true;
54
- }
55
- }
56
- }
57
- exports.ThreadsStopped = ThreadsStopped;
58
- class ThreadAttached {
59
- constructor(bufferReader) {
60
- this.success = false;
61
- // response fields
62
- this.threadIndex = -1;
63
- this.stopReason = -1;
64
- if (bufferReader.length >= bufferReader.readOffset + 6) {
65
- this.threadIndex = bufferReader.readInt32LE();
66
- this.stopReason = getStopReason(bufferReader.readUInt8());
67
- this.stopReasonDetail = util_1.util.readStringNT(bufferReader);
68
- this.success = true;
69
- }
70
- }
71
- }
72
- exports.ThreadAttached = ThreadAttached;
73
- function getStopReason(value) {
74
- switch (value) {
75
- case Constants_1.STOP_REASONS.BREAK:
76
- return Constants_1.STOP_REASONS.BREAK;
77
- case Constants_1.STOP_REASONS.NORMAL_EXIT:
78
- return Constants_1.STOP_REASONS.NORMAL_EXIT;
79
- case Constants_1.STOP_REASONS.NOT_STOPPED:
80
- return Constants_1.STOP_REASONS.NOT_STOPPED;
81
- case Constants_1.STOP_REASONS.RUNTIME_ERROR:
82
- return Constants_1.STOP_REASONS.RUNTIME_ERROR;
83
- case Constants_1.STOP_REASONS.STOP_STATEMENT:
84
- return Constants_1.STOP_REASONS.STOP_STATEMENT;
85
- case Constants_1.STOP_REASONS.UNDEFINED:
86
- return Constants_1.STOP_REASONS.UNDEFINED;
87
- default:
88
- return Constants_1.STOP_REASONS.UNDEFINED;
89
- }
90
- }
91
- //# sourceMappingURL=UpdateThreadsResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UpdateThreadsResponse.js","sourceRoot":"","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C9B,KAAK,wBAAY,CAAC,WAAW;YACzB,OAAO,wBAAY,CAAC,WAAW,CAAC;QACpC,KAAK,wBAAY,CAAC,WAAW;YACzB,OAAO,wBAAY,CAAC,WAAW,CAAC;QACpC,KAAK,wBAAY,CAAC,aAAa;YAC3B,OAAO,wBAAY,CAAC,aAAa,CAAC;QACtC,KAAK,wBAAY,CAAC,cAAc;YAC5B,OAAO,wBAAY,CAAC,cAAc,CAAC;QACvC,KAAK,wBAAY,CAAC,SAAS;YACvB,OAAO,wBAAY,CAAC,SAAS,CAAC;QAClC;YACI,OAAO,wBAAY,CAAC,SAAS,CAAC;KACrC;AACL,CAAC"}
@@ -1,27 +0,0 @@
1
- /// <reference types="node" />
2
- import { SmartBuffer } from 'smart-buffer';
3
- export declare class VariableResponse {
4
- constructor(buffer: Buffer);
5
- success: boolean;
6
- readOffset: number;
7
- requestId: number;
8
- errorCode: number;
9
- numVariables: number;
10
- variables: VariableInfo[];
11
- }
12
- export declare class VariableInfo {
13
- constructor(bufferReader: SmartBuffer);
14
- success: boolean;
15
- isChildKey: boolean;
16
- isConst: boolean;
17
- isContainer: boolean;
18
- isNameHere: boolean;
19
- isRefCounted: boolean;
20
- isValueHere: boolean;
21
- variableType: string;
22
- name: string;
23
- refCount: number;
24
- keyType: string;
25
- elementCount: number;
26
- value: number | string | boolean | bigint | null;
27
- }