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.
- package/CHANGELOG.md +6 -0
- package/dist/CompileErrorProcessor.d.ts +7 -2
- package/dist/CompileErrorProcessor.js +64 -69
- package/dist/CompileErrorProcessor.js.map +1 -1
- package/dist/DeviceInfo.d.ts +1 -0
- package/dist/adapters/DebugProtocolAdapter.d.ts +64 -17
- package/dist/adapters/DebugProtocolAdapter.js +264 -157
- package/dist/adapters/DebugProtocolAdapter.js.map +1 -1
- package/dist/adapters/TelnetAdapter.d.ts +8 -3
- package/dist/adapters/TelnetAdapter.js +14 -6
- package/dist/adapters/TelnetAdapter.js.map +1 -1
- package/dist/debugProtocol/Constants.d.ts +171 -81
- package/dist/debugProtocol/Constants.js +206 -126
- package/dist/debugProtocol/Constants.js.map +1 -1
- package/dist/debugProtocol/DebugProtocolClientReplaySession.d.ts +46 -0
- package/dist/debugProtocol/DebugProtocolClientReplaySession.js +278 -0
- package/dist/debugProtocol/DebugProtocolClientReplaySession.js.map +1 -0
- package/dist/debugProtocol/PluginInterface.d.ts +38 -0
- package/dist/debugProtocol/PluginInterface.js +86 -0
- package/dist/debugProtocol/PluginInterface.js.map +1 -0
- package/dist/debugProtocol/ProtocolUtil.d.ts +56 -0
- package/dist/debugProtocol/ProtocolUtil.js +164 -0
- package/dist/debugProtocol/ProtocolUtil.js.map +1 -0
- package/dist/debugProtocol/client/DebugProtocolClient.d.ts +310 -0
- package/dist/debugProtocol/client/DebugProtocolClient.js +1079 -0
- package/dist/debugProtocol/client/DebugProtocolClient.js.map +1 -0
- package/dist/debugProtocol/client/DebugProtocolClientPlugin.d.ts +44 -0
- package/dist/debugProtocol/client/DebugProtocolClientPlugin.js +3 -0
- package/dist/debugProtocol/client/DebugProtocolClientPlugin.js.map +1 -0
- package/dist/debugProtocol/events/ProtocolEvent.d.ts +66 -0
- package/dist/debugProtocol/events/ProtocolEvent.js +3 -0
- package/dist/debugProtocol/events/ProtocolEvent.js.map +1 -0
- package/dist/debugProtocol/events/requests/AddBreakpointsRequest.d.ts +30 -0
- package/dist/debugProtocol/events/requests/AddBreakpointsRequest.js +63 -0
- package/dist/debugProtocol/events/requests/AddBreakpointsRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/AddConditionalBreakpointsRequest.d.ts +48 -0
- package/dist/debugProtocol/events/requests/AddConditionalBreakpointsRequest.js +69 -0
- package/dist/debugProtocol/events/requests/AddConditionalBreakpointsRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/ContinueRequest.d.ts +20 -0
- package/dist/debugProtocol/events/requests/ContinueRequest.js +40 -0
- package/dist/debugProtocol/events/requests/ContinueRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/ExecuteRequest.d.ts +26 -0
- package/dist/debugProtocol/events/requests/ExecuteRequest.js +49 -0
- package/dist/debugProtocol/events/requests/ExecuteRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/ExitChannelRequest.d.ts +20 -0
- package/dist/debugProtocol/events/requests/ExitChannelRequest.js +40 -0
- package/dist/debugProtocol/events/requests/ExitChannelRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/HandshakeRequest.d.ts +26 -0
- package/dist/debugProtocol/events/requests/HandshakeRequest.js +47 -0
- package/dist/debugProtocol/events/requests/HandshakeRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/ListBreakpointsRequest.d.ts +20 -0
- package/dist/debugProtocol/events/requests/ListBreakpointsRequest.js +40 -0
- package/dist/debugProtocol/events/requests/ListBreakpointsRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/RemoveBreakpointsRequest.d.ts +29 -0
- package/dist/debugProtocol/events/requests/RemoveBreakpointsRequest.js +60 -0
- package/dist/debugProtocol/events/requests/RemoveBreakpointsRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/StackTraceRequest.d.ts +22 -0
- package/dist/debugProtocol/events/requests/StackTraceRequest.js +43 -0
- package/dist/debugProtocol/events/requests/StackTraceRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/StepRequest.d.ts +25 -0
- package/dist/debugProtocol/events/requests/StepRequest.js +46 -0
- package/dist/debugProtocol/events/requests/StepRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/StopRequest.d.ts +20 -0
- package/dist/debugProtocol/events/requests/StopRequest.js +39 -0
- package/dist/debugProtocol/events/requests/StopRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/ThreadsRequest.d.ts +20 -0
- package/dist/debugProtocol/events/requests/ThreadsRequest.js +40 -0
- package/dist/debugProtocol/events/requests/ThreadsRequest.js.map +1 -0
- package/dist/debugProtocol/events/requests/VariablesRequest.d.ts +59 -0
- package/dist/debugProtocol/events/requests/VariablesRequest.js +123 -0
- package/dist/debugProtocol/events/requests/VariablesRequest.js.map +1 -0
- package/dist/debugProtocol/events/responses/AddBreakpointsResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/AddConditionalBreakpointsResponse.d.ts +3 -0
- package/dist/debugProtocol/events/responses/AddConditionalBreakpointsResponse.js +9 -0
- package/dist/debugProtocol/events/responses/AddConditionalBreakpointsResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/ExecuteV3Response.d.ts +42 -0
- package/dist/debugProtocol/events/responses/ExecuteV3Response.js +94 -0
- package/dist/debugProtocol/events/responses/ExecuteV3Response.js.map +1 -0
- package/dist/debugProtocol/events/responses/GenericResponse.d.ts +17 -0
- package/dist/debugProtocol/events/responses/GenericResponse.js +40 -0
- package/dist/debugProtocol/events/responses/GenericResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/GenericV3Response.d.ts +15 -0
- package/dist/debugProtocol/events/responses/GenericV3Response.js +38 -0
- package/dist/debugProtocol/events/responses/GenericV3Response.js.map +1 -0
- package/dist/debugProtocol/events/responses/HandshakeResponse.d.ts +28 -0
- package/dist/debugProtocol/events/responses/HandshakeResponse.js +69 -0
- package/dist/debugProtocol/events/responses/HandshakeResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/HandshakeV3Response.d.ts +42 -0
- package/dist/debugProtocol/events/responses/HandshakeV3Response.js +98 -0
- package/dist/debugProtocol/events/responses/HandshakeV3Response.js.map +1 -0
- package/dist/debugProtocol/events/responses/ListBreakpointsResponse.d.ts +35 -0
- package/dist/debugProtocol/events/responses/ListBreakpointsResponse.js +68 -0
- package/dist/debugProtocol/events/responses/ListBreakpointsResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/RemoveBreakpointsResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/StackTraceResponse.d.ts +24 -0
- package/dist/debugProtocol/events/responses/StackTraceResponse.js +72 -0
- package/dist/debugProtocol/events/responses/StackTraceResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/StackTraceV3Response.d.ts +37 -0
- package/dist/debugProtocol/events/responses/StackTraceV3Response.js +67 -0
- package/dist/debugProtocol/events/responses/StackTraceV3Response.js.map +1 -0
- package/dist/debugProtocol/events/responses/ThreadsResponse.d.ts +54 -0
- package/dist/debugProtocol/events/responses/ThreadsResponse.js +80 -0
- package/dist/debugProtocol/events/responses/ThreadsResponse.js.map +1 -0
- package/dist/debugProtocol/events/responses/VariablesResponse.d.ts +117 -0
- package/dist/debugProtocol/events/responses/VariablesResponse.js +335 -0
- package/dist/debugProtocol/events/responses/VariablesResponse.js.map +1 -0
- package/dist/debugProtocol/events/updates/AllThreadsStoppedUpdate.d.ts +35 -0
- package/dist/debugProtocol/events/updates/AllThreadsStoppedUpdate.js +58 -0
- package/dist/debugProtocol/events/updates/AllThreadsStoppedUpdate.js.map +1 -0
- package/dist/debugProtocol/events/updates/BreakpointErrorUpdate.d.ts +42 -0
- package/dist/debugProtocol/events/updates/BreakpointErrorUpdate.js +97 -0
- package/dist/debugProtocol/events/updates/BreakpointErrorUpdate.js.map +1 -0
- package/dist/debugProtocol/events/updates/BreakpointVerifiedUpdate.d.ts +41 -0
- package/dist/debugProtocol/events/updates/BreakpointVerifiedUpdate.js +74 -0
- package/dist/debugProtocol/events/updates/BreakpointVerifiedUpdate.js.map +1 -0
- package/dist/debugProtocol/events/updates/CompileErrorUpdate.d.ts +60 -0
- package/dist/debugProtocol/events/updates/CompileErrorUpdate.js +89 -0
- package/dist/debugProtocol/events/updates/CompileErrorUpdate.js.map +1 -0
- package/dist/debugProtocol/events/updates/IOPortOpenedUpdate.d.ts +23 -0
- package/dist/debugProtocol/events/updates/IOPortOpenedUpdate.js +49 -0
- package/dist/debugProtocol/events/updates/IOPortOpenedUpdate.js.map +1 -0
- package/dist/debugProtocol/events/updates/ThreadAttachedUpdate.d.ts +26 -0
- package/dist/debugProtocol/events/updates/ThreadAttachedUpdate.js +50 -0
- package/dist/debugProtocol/events/updates/ThreadAttachedUpdate.js.map +1 -0
- package/dist/debugProtocol/server/DebugProtocolServer.d.ts +110 -0
- package/dist/debugProtocol/server/DebugProtocolServer.js +306 -0
- package/dist/debugProtocol/server/DebugProtocolServer.js.map +1 -0
- package/dist/debugProtocol/server/DebugProtocolServerPlugin.d.ts +41 -0
- package/dist/debugProtocol/server/DebugProtocolServerPlugin.js +3 -0
- package/dist/debugProtocol/server/DebugProtocolServerPlugin.js.map +1 -0
- package/dist/debugSession/BrightScriptDebugSession.d.ts +9 -1
- package/dist/debugSession/BrightScriptDebugSession.js +178 -89
- package/dist/debugSession/BrightScriptDebugSession.js.map +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/logging.d.ts +1 -0
- package/dist/logging.js +4 -2
- package/dist/logging.js.map +1 -1
- package/dist/managers/ActionQueue.d.ts +7 -1
- package/dist/managers/ActionQueue.js +27 -5
- package/dist/managers/ActionQueue.js.map +1 -1
- package/dist/managers/BreakpointManager.d.ts +82 -27
- package/dist/managers/BreakpointManager.js +168 -63
- package/dist/managers/BreakpointManager.js.map +1 -1
- package/dist/managers/ProjectManager.d.ts +3 -0
- package/dist/managers/ProjectManager.js +42 -36
- package/dist/managers/ProjectManager.js.map +1 -1
- package/dist/util.d.ts +8 -6
- package/dist/util.js +36 -19
- package/dist/util.js.map +1 -1
- package/package.json +14 -5
- package/roku-debug-0.20.7.tgz +0 -0
- package/dist/debugProtocol/Debugger.d.ts +0 -161
- package/dist/debugProtocol/Debugger.js +0 -635
- package/dist/debugProtocol/Debugger.js.map +0 -1
- package/dist/debugProtocol/responses/AddBreakpointsResponse.js.map +0 -1
- package/dist/debugProtocol/responses/BreakpointErrorUpdateResponse.d.ts +0 -32
- package/dist/debugProtocol/responses/BreakpointErrorUpdateResponse.js +0 -67
- package/dist/debugProtocol/responses/BreakpointErrorUpdateResponse.js.map +0 -1
- package/dist/debugProtocol/responses/BreakpointVerifiedUpdateResponse.d.ts +0 -32
- package/dist/debugProtocol/responses/BreakpointVerifiedUpdateResponse.js +0 -56
- package/dist/debugProtocol/responses/BreakpointVerifiedUpdateResponse.js.map +0 -1
- package/dist/debugProtocol/responses/ConnectIOPortResponse.d.ts +0 -10
- package/dist/debugProtocol/responses/ConnectIOPortResponse.js +0 -39
- package/dist/debugProtocol/responses/ConnectIOPortResponse.js.map +0 -1
- package/dist/debugProtocol/responses/ExecuteResponseV3.d.ts +0 -23
- package/dist/debugProtocol/responses/ExecuteResponseV3.js +0 -54
- package/dist/debugProtocol/responses/ExecuteResponseV3.js.map +0 -1
- package/dist/debugProtocol/responses/HandshakeResponse.d.ts +0 -12
- package/dist/debugProtocol/responses/HandshakeResponse.js +0 -39
- package/dist/debugProtocol/responses/HandshakeResponse.js.map +0 -1
- package/dist/debugProtocol/responses/HandshakeResponseV3.d.ts +0 -14
- package/dist/debugProtocol/responses/HandshakeResponseV3.js +0 -47
- package/dist/debugProtocol/responses/HandshakeResponseV3.js.map +0 -1
- package/dist/debugProtocol/responses/ListBreakpointsResponse.d.ts +0 -25
- package/dist/debugProtocol/responses/ListBreakpointsResponse.js +0 -65
- package/dist/debugProtocol/responses/ListBreakpointsResponse.js.map +0 -1
- package/dist/debugProtocol/responses/ProtocolEvent.d.ts +0 -11
- package/dist/debugProtocol/responses/ProtocolEvent.js +0 -38
- package/dist/debugProtocol/responses/ProtocolEvent.js.map +0 -1
- package/dist/debugProtocol/responses/ProtocolEventV3.d.ts +0 -11
- package/dist/debugProtocol/responses/ProtocolEventV3.js +0 -42
- package/dist/debugProtocol/responses/ProtocolEventV3.js.map +0 -1
- package/dist/debugProtocol/responses/RemoveBreakpointsResponse.js.map +0 -1
- package/dist/debugProtocol/responses/StackTraceResponse.d.ts +0 -18
- package/dist/debugProtocol/responses/StackTraceResponse.js +0 -58
- package/dist/debugProtocol/responses/StackTraceResponse.js.map +0 -1
- package/dist/debugProtocol/responses/StackTraceResponseV3.d.ts +0 -18
- package/dist/debugProtocol/responses/StackTraceResponseV3.js +0 -58
- package/dist/debugProtocol/responses/StackTraceResponseV3.js.map +0 -1
- package/dist/debugProtocol/responses/ThreadsResponse.d.ts +0 -22
- package/dist/debugProtocol/responses/ThreadsResponse.js +0 -63
- package/dist/debugProtocol/responses/ThreadsResponse.js.map +0 -1
- package/dist/debugProtocol/responses/UndefinedResponse.d.ts +0 -10
- package/dist/debugProtocol/responses/UndefinedResponse.js +0 -39
- package/dist/debugProtocol/responses/UndefinedResponse.js.map +0 -1
- package/dist/debugProtocol/responses/UpdateThreadsResponse.d.ts +0 -25
- package/dist/debugProtocol/responses/UpdateThreadsResponse.js +0 -91
- package/dist/debugProtocol/responses/UpdateThreadsResponse.js.map +0 -1
- package/dist/debugProtocol/responses/VariableResponse.d.ts +0 -27
- package/dist/debugProtocol/responses/VariableResponse.js +0 -141
- package/dist/debugProtocol/responses/VariableResponse.js.map +0 -1
- package/dist/debugProtocol/responses/index.d.ts +0 -11
- package/dist/debugProtocol/responses/index.js +0 -24
- package/dist/debugProtocol/responses/index.js.map +0 -1
- package/roku-debug-0.20.6.tgz +0 -0
- /package/dist/debugProtocol/{responses → events/responses}/AddBreakpointsResponse.d.ts +0 -0
- /package/dist/debugProtocol/{responses → events/responses}/AddBreakpointsResponse.js +0 -0
- /package/dist/debugProtocol/{responses → events/responses}/RemoveBreakpointsResponse.d.ts +0 -0
- /package/dist/debugProtocol/{responses → events/responses}/RemoveBreakpointsResponse.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExitChannelRequest.js","sourceRoot":"","sources":["../../../../src/debugProtocol/events/requests/ExitChannelRequest.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,+CAA0C;AAC1C,qDAAkD;AAGlD,MAAa,kBAAkB;IAA/B;QAsBW,YAAO,GAAG,KAAK,CAAC;QACvB;;WAEG;QACI,eAAU,GAAW,SAAS,CAAC;QAE/B,SAAI,GAAG;YACV,cAAc;YACd,YAAY,EAAE,SAAmB;YACjC,SAAS,EAAE,SAAmB;YAC9B,OAAO,EAAE,mBAAO,CAAC,WAAW;SAC/B,CAAC;IACN,CAAC;IAhCU,MAAM,CAAC,QAAQ,CAAC,IAA2B;QAC9C,MAAM,OAAO,GAAG,IAAI,kBAAkB,EAAE,CAAC;QACzC,2BAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACrC,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,MAAc;QACnC,MAAM,OAAO,GAAG,IAAI,kBAAkB,EAAE,CAAC;QACzC,2BAAY,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,WAAW,EAAE,EAAE;YACjE,2BAAY,CAAC,uBAAuB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,QAAQ;QACX,MAAM,WAAW,GAAG,IAAI,0BAAW,EAAE,CAAC;QACtC,2BAAY,CAAC,yBAAyB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC1D,OAAO,WAAW,CAAC,QAAQ,EAAE,CAAC;IAClC,CAAC;CAcJ;AAlCD,gDAkCC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { ProtocolRequest } from '../ProtocolEvent';
|
|
3
|
+
import type { Command } from '../../Constants';
|
|
4
|
+
/**
|
|
5
|
+
* The initial handshake sent by the client. This is just the `magic` to initiate the debug protocol session
|
|
6
|
+
* @since protocol v1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export declare class HandshakeRequest implements ProtocolRequest {
|
|
9
|
+
/**
|
|
10
|
+
* A hardcoded id for the handshake classes to help them flow through the request/response flow even though Handshake events don't look the same as other protocol events
|
|
11
|
+
*/
|
|
12
|
+
static REQUEST_ID: number;
|
|
13
|
+
static fromJson(data: {
|
|
14
|
+
magic: string;
|
|
15
|
+
}): HandshakeRequest;
|
|
16
|
+
static fromBuffer(buffer: Buffer): HandshakeRequest;
|
|
17
|
+
toBuffer(): Buffer;
|
|
18
|
+
success: boolean;
|
|
19
|
+
readOffset: any;
|
|
20
|
+
data: {
|
|
21
|
+
magic: string;
|
|
22
|
+
packetLength: number;
|
|
23
|
+
requestId: number;
|
|
24
|
+
command: Command;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HandshakeRequest = void 0;
|
|
4
|
+
const smart_buffer_1 = require("smart-buffer");
|
|
5
|
+
const ProtocolUtil_1 = require("../../ProtocolUtil");
|
|
6
|
+
/**
|
|
7
|
+
* The initial handshake sent by the client. This is just the `magic` to initiate the debug protocol session
|
|
8
|
+
* @since protocol v1.0.0
|
|
9
|
+
*/
|
|
10
|
+
class HandshakeRequest {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.success = false;
|
|
13
|
+
this.readOffset = undefined;
|
|
14
|
+
this.data = {
|
|
15
|
+
magic: undefined,
|
|
16
|
+
//handshake requests aren't actually structured like like normal requests, but since they're the only unique type of request,
|
|
17
|
+
//just add dummy data for those fields
|
|
18
|
+
packetLength: undefined,
|
|
19
|
+
//hardcode the max integer value. This must be the same value as the HandshakeResponse class
|
|
20
|
+
requestId: HandshakeRequest.REQUEST_ID,
|
|
21
|
+
command: undefined
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static fromJson(data) {
|
|
25
|
+
const request = new HandshakeRequest();
|
|
26
|
+
ProtocolUtil_1.protocolUtil.loadJson(request, data);
|
|
27
|
+
return request;
|
|
28
|
+
}
|
|
29
|
+
static fromBuffer(buffer) {
|
|
30
|
+
const request = new HandshakeRequest();
|
|
31
|
+
ProtocolUtil_1.protocolUtil.bufferLoaderHelper(request, buffer, 0, (smartBuffer) => {
|
|
32
|
+
request.data.magic = ProtocolUtil_1.protocolUtil.readStringNT(smartBuffer);
|
|
33
|
+
});
|
|
34
|
+
return request;
|
|
35
|
+
}
|
|
36
|
+
toBuffer() {
|
|
37
|
+
return new smart_buffer_1.SmartBuffer({
|
|
38
|
+
size: Buffer.byteLength(this.data.magic) + 1
|
|
39
|
+
}).writeStringNT(this.data.magic).toBuffer();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.HandshakeRequest = HandshakeRequest;
|
|
43
|
+
/**
|
|
44
|
+
* A hardcoded id for the handshake classes to help them flow through the request/response flow even though Handshake events don't look the same as other protocol events
|
|
45
|
+
*/
|
|
46
|
+
HandshakeRequest.REQUEST_ID = 4294967295;
|
|
47
|
+
//# sourceMappingURL=HandshakeRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HandshakeRequest.js","sourceRoot":"","sources":["../../../../src/debugProtocol/events/requests/HandshakeRequest.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAE3C,qDAAkD;AAIlD;;;GAGG;AACH,MAAa,gBAAgB;IAA7B;QA0BW,YAAO,GAAG,KAAK,CAAC;QAEhB,eAAU,GAAG,SAAS,CAAC;QAEvB,SAAI,GAAG;YACV,KAAK,EAAE,SAAmB;YAE1B,6HAA6H;YAC7H,sCAAsC;YACtC,YAAY,EAAE,SAAmB;YACjC,4FAA4F;YAC5F,SAAS,EAAE,gBAAgB,CAAC,UAAU;YACtC,OAAO,EAAE,SAAoB;SAChC,CAAC;IACN,CAAC;IAlCU,MAAM,CAAC,QAAQ,CAAC,IAAuB;QAC1C,MAAM,OAAO,GAAG,IAAI,gBAAgB,EAAE,CAAC;QACvC,2BAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACrC,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,MAAc;QACnC,MAAM,OAAO,GAAG,IAAI,gBAAgB,EAAE,CAAC;QACvC,2BAAY,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,WAAW,EAAE,EAAE;YAChE,OAAO,CAAC,IAAI,CAAC,KAAK,GAAG,2BAAY,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,QAAQ;QACX,OAAO,IAAI,0BAAW,CAAC;YACnB,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;SAC/C,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;IACjD,CAAC;;AAxBL,4CAwCC;AAvCG;;GAEG;AACW,2BAAU,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Command } from '../../Constants';
|
|
3
|
+
import type { ProtocolRequest } from '../ProtocolEvent';
|
|
4
|
+
export declare class ListBreakpointsRequest implements ProtocolRequest {
|
|
5
|
+
static fromJson(data: {
|
|
6
|
+
requestId: number;
|
|
7
|
+
}): ListBreakpointsRequest;
|
|
8
|
+
static fromBuffer(buffer: Buffer): ListBreakpointsRequest;
|
|
9
|
+
toBuffer(): Buffer;
|
|
10
|
+
success: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
13
|
+
*/
|
|
14
|
+
readOffset: number;
|
|
15
|
+
data: {
|
|
16
|
+
packetLength: number;
|
|
17
|
+
requestId: number;
|
|
18
|
+
command: Command;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListBreakpointsRequest = void 0;
|
|
4
|
+
const smart_buffer_1 = require("smart-buffer");
|
|
5
|
+
const Constants_1 = require("../../Constants");
|
|
6
|
+
const ProtocolUtil_1 = require("../../ProtocolUtil");
|
|
7
|
+
class ListBreakpointsRequest {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.success = false;
|
|
10
|
+
/**
|
|
11
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
12
|
+
*/
|
|
13
|
+
this.readOffset = undefined;
|
|
14
|
+
this.data = {
|
|
15
|
+
//common props
|
|
16
|
+
packetLength: undefined,
|
|
17
|
+
requestId: undefined,
|
|
18
|
+
command: Constants_1.Command.ListBreakpoints
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static fromJson(data) {
|
|
22
|
+
const request = new ListBreakpointsRequest();
|
|
23
|
+
ProtocolUtil_1.protocolUtil.loadJson(request, data);
|
|
24
|
+
return request;
|
|
25
|
+
}
|
|
26
|
+
static fromBuffer(buffer) {
|
|
27
|
+
const request = new ListBreakpointsRequest();
|
|
28
|
+
ProtocolUtil_1.protocolUtil.bufferLoaderHelper(request, buffer, 12, (smartBuffer) => {
|
|
29
|
+
ProtocolUtil_1.protocolUtil.loadCommonRequestFields(request, smartBuffer);
|
|
30
|
+
});
|
|
31
|
+
return request;
|
|
32
|
+
}
|
|
33
|
+
toBuffer() {
|
|
34
|
+
const smartBuffer = new smart_buffer_1.SmartBuffer();
|
|
35
|
+
ProtocolUtil_1.protocolUtil.insertCommonRequestFields(this, smartBuffer);
|
|
36
|
+
return smartBuffer.toBuffer();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.ListBreakpointsRequest = ListBreakpointsRequest;
|
|
40
|
+
//# sourceMappingURL=ListBreakpointsRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListBreakpointsRequest.js","sourceRoot":"","sources":["../../../../src/debugProtocol/events/requests/ListBreakpointsRequest.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,+CAA0C;AAC1C,qDAAkD;AAGlD,MAAa,sBAAsB;IAAnC;QAsBW,YAAO,GAAG,KAAK,CAAC;QACvB;;WAEG;QACI,eAAU,GAAW,SAAS,CAAC;QAE/B,SAAI,GAAG;YACV,cAAc;YACd,YAAY,EAAE,SAAmB;YACjC,SAAS,EAAE,SAAmB;YAC9B,OAAO,EAAE,mBAAO,CAAC,eAAe;SACnC,CAAC;IACN,CAAC;IAhCU,MAAM,CAAC,QAAQ,CAAC,IAA2B;QAC9C,MAAM,OAAO,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAC7C,2BAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACrC,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,MAAc;QACnC,MAAM,OAAO,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAC7C,2BAAY,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,WAAW,EAAE,EAAE;YACjE,2BAAY,CAAC,uBAAuB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,QAAQ;QACX,MAAM,WAAW,GAAG,IAAI,0BAAW,EAAE,CAAC;QACtC,2BAAY,CAAC,yBAAyB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC1D,OAAO,WAAW,CAAC,QAAQ,EAAE,CAAC;IAClC,CAAC;CAcJ;AAlCD,wDAkCC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Command } from '../../Constants';
|
|
3
|
+
import type { ProtocolRequest } from '../ProtocolEvent';
|
|
4
|
+
export declare class RemoveBreakpointsRequest implements ProtocolRequest {
|
|
5
|
+
static fromJson(data: {
|
|
6
|
+
requestId: number;
|
|
7
|
+
breakpointIds: number[];
|
|
8
|
+
}): RemoveBreakpointsRequest;
|
|
9
|
+
static fromBuffer(buffer: Buffer): RemoveBreakpointsRequest;
|
|
10
|
+
toBuffer(): Buffer;
|
|
11
|
+
success: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
14
|
+
*/
|
|
15
|
+
readOffset: number;
|
|
16
|
+
data: {
|
|
17
|
+
/**
|
|
18
|
+
* The number of breakpoints in the breakpoints array.
|
|
19
|
+
*/
|
|
20
|
+
numBreakpoints: number;
|
|
21
|
+
/**
|
|
22
|
+
* An array of breakpoint IDs representing the breakpoints to be removed.
|
|
23
|
+
*/
|
|
24
|
+
breakpointIds: any[];
|
|
25
|
+
packetLength: number;
|
|
26
|
+
requestId: number;
|
|
27
|
+
command: Command;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemoveBreakpointsRequest = void 0;
|
|
4
|
+
const smart_buffer_1 = require("smart-buffer");
|
|
5
|
+
const Constants_1 = require("../../Constants");
|
|
6
|
+
const ProtocolUtil_1 = require("../../ProtocolUtil");
|
|
7
|
+
class RemoveBreakpointsRequest {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.success = false;
|
|
10
|
+
/**
|
|
11
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
12
|
+
*/
|
|
13
|
+
this.readOffset = undefined;
|
|
14
|
+
this.data = {
|
|
15
|
+
/**
|
|
16
|
+
* The number of breakpoints in the breakpoints array.
|
|
17
|
+
*/
|
|
18
|
+
numBreakpoints: undefined,
|
|
19
|
+
/**
|
|
20
|
+
* An array of breakpoint IDs representing the breakpoints to be removed.
|
|
21
|
+
*/
|
|
22
|
+
breakpointIds: [],
|
|
23
|
+
//common props
|
|
24
|
+
packetLength: undefined,
|
|
25
|
+
requestId: undefined,
|
|
26
|
+
command: Constants_1.Command.RemoveBreakpoints
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static fromJson(data) {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
const request = new RemoveBreakpointsRequest();
|
|
32
|
+
ProtocolUtil_1.protocolUtil.loadJson(request, data);
|
|
33
|
+
request.data.numBreakpoints = (_b = (_a = request.data.breakpointIds) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
34
|
+
return request;
|
|
35
|
+
}
|
|
36
|
+
static fromBuffer(buffer) {
|
|
37
|
+
const command = new RemoveBreakpointsRequest();
|
|
38
|
+
ProtocolUtil_1.protocolUtil.bufferLoaderHelper(command, buffer, 16, (smartBuffer) => {
|
|
39
|
+
ProtocolUtil_1.protocolUtil.loadCommonRequestFields(command, smartBuffer);
|
|
40
|
+
command.data.numBreakpoints = smartBuffer.readUInt32LE();
|
|
41
|
+
command.data.breakpointIds = [];
|
|
42
|
+
for (let i = 0; i < command.data.numBreakpoints; i++) {
|
|
43
|
+
command.data.breakpointIds.push(smartBuffer.readUInt32LE());
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
return command;
|
|
47
|
+
}
|
|
48
|
+
toBuffer() {
|
|
49
|
+
var _a, _b, _c;
|
|
50
|
+
const smartBuffer = new smart_buffer_1.SmartBuffer();
|
|
51
|
+
smartBuffer.writeUInt32LE((_b = (_a = this.data.breakpointIds) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0); // num_breakpoints
|
|
52
|
+
for (const breakpointId of (_c = this.data.breakpointIds) !== null && _c !== void 0 ? _c : []) {
|
|
53
|
+
smartBuffer.writeUInt32LE(breakpointId); // breakpoint_ids
|
|
54
|
+
}
|
|
55
|
+
ProtocolUtil_1.protocolUtil.insertCommonRequestFields(this, smartBuffer);
|
|
56
|
+
return smartBuffer.toBuffer();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.RemoveBreakpointsRequest = RemoveBreakpointsRequest;
|
|
60
|
+
//# sourceMappingURL=RemoveBreakpointsRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveBreakpointsRequest.js","sourceRoot":"","sources":["../../../../src/debugProtocol/events/requests/RemoveBreakpointsRequest.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,+CAA0C;AAC1C,qDAAkD;AAGlD,MAAa,wBAAwB;IAArC;QAkCW,YAAO,GAAG,KAAK,CAAC;QACvB;;WAEG;QACI,eAAU,GAAW,SAAS,CAAC;QAE/B,SAAI,GAAG;YACV;;eAEG;YACH,cAAc,EAAE,SAAmB;YACnC;;eAEG;YACH,aAAa,EAAE,EAAE;YAGjB,cAAc;YACd,YAAY,EAAE,SAAmB;YACjC,SAAS,EAAE,SAAmB;YAC9B,OAAO,EAAE,mBAAO,CAAC,iBAAiB;SACrC,CAAC;IACN,CAAC;IAtDU,MAAM,CAAC,QAAQ,CAAC,IAAoD;;QACvE,MAAM,OAAO,GAAG,IAAI,wBAAwB,EAAE,CAAC;QAC/C,2BAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACrC,OAAO,CAAC,IAAI,CAAC,cAAc,GAAG,MAAA,MAAA,OAAO,CAAC,IAAI,CAAC,aAAa,0CAAE,MAAM,mCAAI,CAAC,CAAC;QACtE,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,MAAc;QACnC,MAAM,OAAO,GAAG,IAAI,wBAAwB,EAAE,CAAC;QAC/C,2BAAY,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,WAAW,EAAE,EAAE;YACjE,2BAAY,CAAC,uBAAuB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;YAC3D,OAAO,CAAC,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,YAAY,EAAE,CAAC;YACzD,OAAO,CAAC,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;YAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,EAAE,EAAE;gBAClD,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAC3B,WAAW,CAAC,YAAY,EAAE,CAC7B,CAAC;aACL;QACL,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,QAAQ;;QACX,MAAM,WAAW,GAAG,IAAI,0BAAW,EAAE,CAAC;QACtC,WAAW,CAAC,aAAa,CAAC,MAAA,MAAA,IAAI,CAAC,IAAI,CAAC,aAAa,0CAAE,MAAM,mCAAI,CAAC,CAAC,CAAC,CAAC,kBAAkB;QACnF,KAAK,MAAM,YAAY,IAAI,MAAA,IAAI,CAAC,IAAI,CAAC,aAAa,mCAAI,EAAE,EAAE;YACtD,WAAW,CAAC,aAAa,CAAC,YAAsB,CAAC,CAAC,CAAC,iBAAiB;SACvE;QACD,2BAAY,CAAC,yBAAyB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC1D,OAAO,WAAW,CAAC,QAAQ,EAAE,CAAC;IAClC,CAAC;CAwBJ;AAxDD,4DAwDC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Command } from '../../Constants';
|
|
3
|
+
import type { ProtocolRequest } from '../ProtocolEvent';
|
|
4
|
+
export declare class StackTraceRequest implements ProtocolRequest {
|
|
5
|
+
static fromJson(data: {
|
|
6
|
+
requestId: number;
|
|
7
|
+
threadIndex: number;
|
|
8
|
+
}): StackTraceRequest;
|
|
9
|
+
static fromBuffer(buffer: Buffer): StackTraceRequest;
|
|
10
|
+
toBuffer(): Buffer;
|
|
11
|
+
success: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
14
|
+
*/
|
|
15
|
+
readOffset: number;
|
|
16
|
+
data: {
|
|
17
|
+
threadIndex: number;
|
|
18
|
+
packetLength: number;
|
|
19
|
+
requestId: number;
|
|
20
|
+
command: Command;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StackTraceRequest = void 0;
|
|
4
|
+
const smart_buffer_1 = require("smart-buffer");
|
|
5
|
+
const Constants_1 = require("../../Constants");
|
|
6
|
+
const ProtocolUtil_1 = require("../../ProtocolUtil");
|
|
7
|
+
class StackTraceRequest {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.success = false;
|
|
10
|
+
/**
|
|
11
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
12
|
+
*/
|
|
13
|
+
this.readOffset = undefined;
|
|
14
|
+
this.data = {
|
|
15
|
+
threadIndex: undefined,
|
|
16
|
+
//common props
|
|
17
|
+
packetLength: undefined,
|
|
18
|
+
requestId: undefined,
|
|
19
|
+
command: Constants_1.Command.StackTrace
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static fromJson(data) {
|
|
23
|
+
const request = new StackTraceRequest();
|
|
24
|
+
ProtocolUtil_1.protocolUtil.loadJson(request, data);
|
|
25
|
+
return request;
|
|
26
|
+
}
|
|
27
|
+
static fromBuffer(buffer) {
|
|
28
|
+
const request = new StackTraceRequest();
|
|
29
|
+
ProtocolUtil_1.protocolUtil.bufferLoaderHelper(request, buffer, 12, (smartBuffer) => {
|
|
30
|
+
ProtocolUtil_1.protocolUtil.loadCommonRequestFields(request, smartBuffer);
|
|
31
|
+
request.data.threadIndex = smartBuffer.readUInt32LE(); //thread_index
|
|
32
|
+
});
|
|
33
|
+
return request;
|
|
34
|
+
}
|
|
35
|
+
toBuffer() {
|
|
36
|
+
const smartBuffer = new smart_buffer_1.SmartBuffer();
|
|
37
|
+
smartBuffer.writeUInt32LE(this.data.threadIndex); //thread_index
|
|
38
|
+
ProtocolUtil_1.protocolUtil.insertCommonRequestFields(this, smartBuffer);
|
|
39
|
+
return smartBuffer.toBuffer();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.StackTraceRequest = StackTraceRequest;
|
|
43
|
+
//# sourceMappingURL=StackTraceRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackTraceRequest.js","sourceRoot":"","sources":["../../../../src/debugProtocol/events/requests/StackTraceRequest.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,+CAA0C;AAC1C,qDAAkD;AAGlD,MAAa,iBAAiB;IAA9B;QA0BW,YAAO,GAAG,KAAK,CAAC;QACvB;;WAEG;QACI,eAAU,GAAW,SAAS,CAAC;QAE/B,SAAI,GAAG;YACV,WAAW,EAAE,SAAmB;YAEhC,cAAc;YACd,YAAY,EAAE,SAAmB;YACjC,SAAS,EAAE,SAAmB;YAC9B,OAAO,EAAE,mBAAO,CAAC,UAAU;SAC9B,CAAC;IACN,CAAC;IAtCU,MAAM,CAAC,QAAQ,CAAC,IAAgD;QACnE,MAAM,OAAO,GAAG,IAAI,iBAAiB,EAAE,CAAC;QACxC,2BAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACrC,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,MAAc;QACnC,MAAM,OAAO,GAAG,IAAI,iBAAiB,EAAE,CAAC;QACxC,2BAAY,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,WAAW,EAAE,EAAE;YACjE,2BAAY,CAAC,uBAAuB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;YAC3D,OAAO,CAAC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,YAAY,EAAE,CAAC,CAAC,cAAc;QACzE,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,QAAQ;QACX,MAAM,WAAW,GAAG,IAAI,0BAAW,EAAE,CAAC;QAEtC,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc;QAEhE,2BAAY,CAAC,yBAAyB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC1D,OAAO,WAAW,CAAC,QAAQ,EAAE,CAAC;IAClC,CAAC;CAgBJ;AAxCD,8CAwCC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { StepType } from '../../Constants';
|
|
3
|
+
import { Command } from '../../Constants';
|
|
4
|
+
import type { ProtocolRequest } from '../ProtocolEvent';
|
|
5
|
+
export declare class StepRequest implements ProtocolRequest {
|
|
6
|
+
static fromJson(data: {
|
|
7
|
+
requestId: number;
|
|
8
|
+
threadIndex: number;
|
|
9
|
+
stepType: StepType;
|
|
10
|
+
}): StepRequest;
|
|
11
|
+
static fromBuffer(buffer: Buffer): StepRequest;
|
|
12
|
+
toBuffer(): Buffer;
|
|
13
|
+
success: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
16
|
+
*/
|
|
17
|
+
readOffset: number;
|
|
18
|
+
data: {
|
|
19
|
+
threadIndex: number;
|
|
20
|
+
stepType: StepType;
|
|
21
|
+
command: Command;
|
|
22
|
+
packetLength: number;
|
|
23
|
+
requestId: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StepRequest = void 0;
|
|
4
|
+
const smart_buffer_1 = require("smart-buffer");
|
|
5
|
+
const Constants_1 = require("../../Constants");
|
|
6
|
+
const ProtocolUtil_1 = require("../../ProtocolUtil");
|
|
7
|
+
class StepRequest {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.success = false;
|
|
10
|
+
/**
|
|
11
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
12
|
+
*/
|
|
13
|
+
this.readOffset = undefined;
|
|
14
|
+
this.data = {
|
|
15
|
+
threadIndex: undefined,
|
|
16
|
+
stepType: undefined,
|
|
17
|
+
//common props
|
|
18
|
+
command: Constants_1.Command.Step,
|
|
19
|
+
packetLength: undefined,
|
|
20
|
+
requestId: undefined
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static fromJson(data) {
|
|
24
|
+
const request = new StepRequest();
|
|
25
|
+
ProtocolUtil_1.protocolUtil.loadJson(request, data);
|
|
26
|
+
return request;
|
|
27
|
+
}
|
|
28
|
+
static fromBuffer(buffer) {
|
|
29
|
+
const request = new StepRequest();
|
|
30
|
+
ProtocolUtil_1.protocolUtil.bufferLoaderHelper(request, buffer, 12, (smartBuffer) => {
|
|
31
|
+
ProtocolUtil_1.protocolUtil.loadCommonRequestFields(request, smartBuffer);
|
|
32
|
+
request.data.threadIndex = smartBuffer.readUInt32LE(); // thread_index
|
|
33
|
+
request.data.stepType = Constants_1.StepTypeCode[smartBuffer.readUInt8()]; // step_type
|
|
34
|
+
});
|
|
35
|
+
return request;
|
|
36
|
+
}
|
|
37
|
+
toBuffer() {
|
|
38
|
+
const smartBuffer = new smart_buffer_1.SmartBuffer();
|
|
39
|
+
smartBuffer.writeUInt32LE(this.data.threadIndex); //thread_index
|
|
40
|
+
smartBuffer.writeUInt8(Constants_1.StepTypeCode[this.data.stepType]); //step_type
|
|
41
|
+
ProtocolUtil_1.protocolUtil.insertCommonRequestFields(this, smartBuffer);
|
|
42
|
+
return smartBuffer.toBuffer();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.StepRequest = StepRequest;
|
|
46
|
+
//# sourceMappingURL=StepRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepRequest.js","sourceRoot":"","sources":["../../../../src/debugProtocol/events/requests/StepRequest.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAE3C,+CAAwD;AACxD,qDAAkD;AAGlD,MAAa,WAAW;IAAxB;QA4BW,YAAO,GAAG,KAAK,CAAC;QACvB;;WAEG;QACI,eAAU,GAAW,SAAS,CAAC;QAE/B,SAAI,GAAG;YACV,WAAW,EAAE,SAAmB;YAChC,QAAQ,EAAE,SAAqB;YAE/B,cAAc;YACd,OAAO,EAAE,mBAAO,CAAC,IAAI;YACrB,YAAY,EAAE,SAAmB;YACjC,SAAS,EAAE,SAAmB;SAEjC,CAAC;IACN,CAAC;IA1CU,MAAM,CAAC,QAAQ,CAAC,IAAoE;QACvF,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAClC,2BAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACrC,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,MAAc;QACnC,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAClC,2BAAY,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,WAAW,EAAE,EAAE;YACjE,2BAAY,CAAC,uBAAuB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;YAC3D,OAAO,CAAC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,YAAY,EAAE,CAAC,CAAC,eAAe;YACtE,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,wBAAY,CAAC,WAAW,CAAC,SAAS,EAAE,CAAa,CAAC,CAAC,YAAY;QAC3F,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,QAAQ;QACX,MAAM,WAAW,GAAG,IAAI,0BAAW,EAAE,CAAC;QAEtC,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc;QAChE,WAAW,CAAC,UAAU,CAAC,wBAAY,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW;QAErE,2BAAY,CAAC,yBAAyB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC1D,OAAO,WAAW,CAAC,QAAQ,EAAE,CAAC;IAClC,CAAC;CAkBJ;AA5CD,kCA4CC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Command } from '../../Constants';
|
|
3
|
+
import type { ProtocolRequest } from '../ProtocolEvent';
|
|
4
|
+
export declare class StopRequest implements ProtocolRequest {
|
|
5
|
+
static fromJson(data: {
|
|
6
|
+
requestId: number;
|
|
7
|
+
}): StopRequest;
|
|
8
|
+
static fromBuffer(buffer: Buffer): StopRequest;
|
|
9
|
+
toBuffer(): Buffer;
|
|
10
|
+
success: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
13
|
+
*/
|
|
14
|
+
readOffset: number;
|
|
15
|
+
data: {
|
|
16
|
+
packetLength: number;
|
|
17
|
+
requestId: number;
|
|
18
|
+
command: Command;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StopRequest = void 0;
|
|
4
|
+
const smart_buffer_1 = require("smart-buffer");
|
|
5
|
+
const Constants_1 = require("../../Constants");
|
|
6
|
+
const ProtocolUtil_1 = require("../../ProtocolUtil");
|
|
7
|
+
class StopRequest {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.success = false;
|
|
10
|
+
/**
|
|
11
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
12
|
+
*/
|
|
13
|
+
this.readOffset = undefined;
|
|
14
|
+
this.data = {
|
|
15
|
+
packetLength: undefined,
|
|
16
|
+
requestId: undefined,
|
|
17
|
+
command: Constants_1.Command.Stop
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static fromJson(data) {
|
|
21
|
+
const request = new StopRequest();
|
|
22
|
+
ProtocolUtil_1.protocolUtil.loadJson(request, data);
|
|
23
|
+
return request;
|
|
24
|
+
}
|
|
25
|
+
static fromBuffer(buffer) {
|
|
26
|
+
const request = new StopRequest();
|
|
27
|
+
ProtocolUtil_1.protocolUtil.bufferLoaderHelper(request, buffer, 12, (smartBuffer) => {
|
|
28
|
+
ProtocolUtil_1.protocolUtil.loadCommonRequestFields(request, smartBuffer);
|
|
29
|
+
});
|
|
30
|
+
return request;
|
|
31
|
+
}
|
|
32
|
+
toBuffer() {
|
|
33
|
+
const smartBuffer = new smart_buffer_1.SmartBuffer();
|
|
34
|
+
ProtocolUtil_1.protocolUtil.insertCommonRequestFields(this, smartBuffer);
|
|
35
|
+
return smartBuffer.toBuffer();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.StopRequest = StopRequest;
|
|
39
|
+
//# sourceMappingURL=StopRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StopRequest.js","sourceRoot":"","sources":["../../../../src/debugProtocol/events/requests/StopRequest.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,+CAA0C;AAC1C,qDAAkD;AAGlD,MAAa,WAAW;IAAxB;QAsBW,YAAO,GAAG,KAAK,CAAC;QAEvB;;WAEG;QACI,eAAU,GAAW,SAAS,CAAC;QAE/B,SAAI,GAAG;YACV,YAAY,EAAE,SAAmB;YACjC,SAAS,EAAE,SAAmB;YAC9B,OAAO,EAAE,mBAAO,CAAC,IAAI;SACxB,CAAC;IACN,CAAC;IAhCU,MAAM,CAAC,QAAQ,CAAC,IAA2B;QAC9C,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAClC,2BAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACrC,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,MAAc;QACnC,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAClC,2BAAY,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,WAAW,EAAE,EAAE;YACjE,2BAAY,CAAC,uBAAuB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,QAAQ;QACX,MAAM,WAAW,GAAG,IAAI,0BAAW,EAAE,CAAC;QACtC,2BAAY,CAAC,yBAAyB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC1D,OAAO,WAAW,CAAC,QAAQ,EAAE,CAAC;IAClC,CAAC;CAcJ;AAlCD,kCAkCC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Command } from '../../Constants';
|
|
3
|
+
import type { ProtocolRequest } from '../ProtocolEvent';
|
|
4
|
+
export declare class ThreadsRequest implements ProtocolRequest {
|
|
5
|
+
static fromJson(data: {
|
|
6
|
+
requestId: number;
|
|
7
|
+
}): ThreadsRequest;
|
|
8
|
+
static fromBuffer(buffer: Buffer): ThreadsRequest;
|
|
9
|
+
toBuffer(): Buffer;
|
|
10
|
+
success: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
13
|
+
*/
|
|
14
|
+
readOffset: number;
|
|
15
|
+
data: {
|
|
16
|
+
packetLength: number;
|
|
17
|
+
requestId: number;
|
|
18
|
+
command: Command;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThreadsRequest = void 0;
|
|
4
|
+
const smart_buffer_1 = require("smart-buffer");
|
|
5
|
+
const Constants_1 = require("../../Constants");
|
|
6
|
+
const ProtocolUtil_1 = require("../../ProtocolUtil");
|
|
7
|
+
class ThreadsRequest {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.success = false;
|
|
10
|
+
/**
|
|
11
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
12
|
+
*/
|
|
13
|
+
this.readOffset = undefined;
|
|
14
|
+
this.data = {
|
|
15
|
+
//common props
|
|
16
|
+
packetLength: undefined,
|
|
17
|
+
requestId: undefined,
|
|
18
|
+
command: Constants_1.Command.Threads
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static fromJson(data) {
|
|
22
|
+
const request = new ThreadsRequest();
|
|
23
|
+
ProtocolUtil_1.protocolUtil.loadJson(request, data);
|
|
24
|
+
return request;
|
|
25
|
+
}
|
|
26
|
+
static fromBuffer(buffer) {
|
|
27
|
+
const request = new ThreadsRequest();
|
|
28
|
+
ProtocolUtil_1.protocolUtil.bufferLoaderHelper(request, buffer, 12, (smartBuffer) => {
|
|
29
|
+
ProtocolUtil_1.protocolUtil.loadCommonRequestFields(request, smartBuffer);
|
|
30
|
+
});
|
|
31
|
+
return request;
|
|
32
|
+
}
|
|
33
|
+
toBuffer() {
|
|
34
|
+
const smartBuffer = new smart_buffer_1.SmartBuffer();
|
|
35
|
+
ProtocolUtil_1.protocolUtil.insertCommonRequestFields(this, smartBuffer);
|
|
36
|
+
return smartBuffer.toBuffer();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.ThreadsRequest = ThreadsRequest;
|
|
40
|
+
//# sourceMappingURL=ThreadsRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThreadsRequest.js","sourceRoot":"","sources":["../../../../src/debugProtocol/events/requests/ThreadsRequest.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,+CAA0C;AAC1C,qDAAkD;AAGlD,MAAa,cAAc;IAA3B;QAsBW,YAAO,GAAG,KAAK,CAAC;QACvB;;WAEG;QACI,eAAU,GAAW,SAAS,CAAC;QAE/B,SAAI,GAAG;YACV,cAAc;YACd,YAAY,EAAE,SAAmB;YACjC,SAAS,EAAE,SAAmB;YAC9B,OAAO,EAAE,mBAAO,CAAC,OAAO;SAC3B,CAAC;IACN,CAAC;IAhCU,MAAM,CAAC,QAAQ,CAAC,IAA2B;QAC9C,MAAM,OAAO,GAAG,IAAI,cAAc,EAAE,CAAC;QACrC,2BAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACrC,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,MAAc;QACnC,MAAM,OAAO,GAAG,IAAI,cAAc,EAAE,CAAC;QACrC,2BAAY,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,WAAW,EAAE,EAAE;YACjE,2BAAY,CAAC,uBAAuB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,QAAQ;QACX,MAAM,WAAW,GAAG,IAAI,0BAAW,EAAE,CAAC;QACtC,2BAAY,CAAC,yBAAyB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC1D,OAAO,WAAW,CAAC,QAAQ,EAAE,CAAC;IAClC,CAAC;CAcJ;AAlCD,wCAkCC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Command } from '../../Constants';
|
|
3
|
+
import type { ProtocolRequest } from '../ProtocolEvent';
|
|
4
|
+
export declare class VariablesRequest implements ProtocolRequest {
|
|
5
|
+
static fromJson(data: {
|
|
6
|
+
requestId: number;
|
|
7
|
+
getChildKeys: boolean;
|
|
8
|
+
enableForceCaseInsensitivity: boolean;
|
|
9
|
+
threadIndex: number;
|
|
10
|
+
stackFrameIndex: number;
|
|
11
|
+
variablePathEntries: Array<{
|
|
12
|
+
name: string;
|
|
13
|
+
forceCaseInsensitive: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
}): VariablesRequest;
|
|
16
|
+
static fromBuffer(buffer: Buffer): VariablesRequest;
|
|
17
|
+
toBuffer(): Buffer;
|
|
18
|
+
success: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* How many bytes were read by the `fromBuffer` method. Only populated when constructed by `fromBuffer`
|
|
21
|
+
*/
|
|
22
|
+
readOffset: number;
|
|
23
|
+
data: {
|
|
24
|
+
/**
|
|
25
|
+
* Indicates whether the VARIABLES response includes the child keys for container types like lists and associative arrays. If this is set to true (0x01), the VARIABLES response include the child keys.
|
|
26
|
+
*/
|
|
27
|
+
getChildKeys: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Enables the client application to send path_force_case_insensitive data for each variable
|
|
30
|
+
*/
|
|
31
|
+
enableForceCaseInsensitivity: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The index of the thread containing the variable.
|
|
34
|
+
*/
|
|
35
|
+
threadIndex: number;
|
|
36
|
+
/**
|
|
37
|
+
* The index of the frame returned from the STACKTRACE command.
|
|
38
|
+
* The 0 index contains the first function called; nframes-1 contains the last.
|
|
39
|
+
* This indexing does not match the order of the frames returned from the STACKTRACE command
|
|
40
|
+
*/
|
|
41
|
+
stackFrameIndex: number;
|
|
42
|
+
/**
|
|
43
|
+
* A set of one or more path entries to the variable to be inspected. For example, `m.top.myarray[6]` can be accessed with `["m","top","myarray","6"]`.
|
|
44
|
+
*
|
|
45
|
+
* If no path is specified, the variables accessible from the specified stack frame are returned.
|
|
46
|
+
*/
|
|
47
|
+
variablePathEntries: {
|
|
48
|
+
name: string;
|
|
49
|
+
forceCaseInsensitive: boolean;
|
|
50
|
+
}[];
|
|
51
|
+
packetLength: number;
|
|
52
|
+
requestId: number;
|
|
53
|
+
command: Command;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export declare enum VariableRequestFlag {
|
|
57
|
+
GetChildKeys = 1,
|
|
58
|
+
CaseSensitivityOptions = 2
|
|
59
|
+
}
|