Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setTimeout(() => {
this.stopped = true; // This should aleady be true??
this.stoppedReason = 'restart';
this.sendEvent(new ContinuedEvent(this.currentThreadId, true));
this.sendEvent(new StoppedEvent('restart', this.currentThreadId, true));
this.sendEvent(new CustomStoppedEvent('restart', this.currentThreadId));
this.runPostStartSessionCommands(true, 50);
}, 50);
}, (msg) => {
protected customRequest(command: string, response: DebugProtocol.Response, args: any): void {
if (this.serverController.customRequest(command, response, args)) {
this.sendResponse(response);
return;
}
switch (command) {
case 'set-force-disassembly':
response.body = { success: true };
this.forceDisassembly = args.force;
if (this.stopped) {
this.activeEditorPath = null;
this.sendEvent(new ContinuedEvent(this.currentThreadId, true));
this.sendEvent(new StoppedEvent(this.stoppedReason, this.currentThreadId, true));
}
this.sendResponse(response);
break;
case 'load-function-symbols':
response.body = { functionSymbols: this.symbolTable.getFunctionSymbols() };
this.sendResponse(response);
break;
case 'set-active-editor':
if (args.path !== this.activeEditorPath) {
this.activeEditorPath = args.path;
// if (this.stopped) {
// this.sendEvent(new StoppedEvent(this.stoppedReason, this.currentThreadId, true));
// }
}
response.body = {};
protected handleRunning(info: MINode) {
this.stopped = false;
this.sendEvent(new ContinuedEvent(this.currentThreadId, true));
this.sendEvent(new CustomContinuedEvent(this.currentThreadId, true));
}
continueRequest(response, args) {
const threadId = this.threads[args.threadId].serverThreadId;
this.sendEvent(new ContinuedEvent(threadId, false));
this.debugManager.resume(threadId);
}
protected handleRunning(info: MINode) {
this.sendEvent(new ContinuedEvent(this.threadID, true));
this.sendEvent(new CustomContinuedEvent(this.threadID, true));
}
harbourDebugSession.prototype.configurationDoneRequest = function(response, args)
{
if(this.startGo)
{
this.command("GO\r\n");
this.sendEvent(new debugadapter.ContinuedEvent(1,true));
}
this.sendResponse(response);
}
protected restartRequest(
response: DebugProtocol.RestartResponse,
args: DebugProtocol.RestartArguments,
): void {
this.sendEvent(new Event("dart.hotRestartRequest"));
this.sendEvent(new ContinuedEvent(0, true));
this.performReload(true, restartReasonManual);
super.restartRequest(response, args);
}
private handleThreadContinued(
event: skylark_debugging.IThreadContinuedEvent,
) {
this.sendEvent(new ContinuedEvent(number64(event.threadId)));
this.pausedThreads.delete(number64(event.threadId));
}