How to use the vscode-debugadapter.ContinuedEvent function in vscode-debugadapter

To help you get started, we’ve selected a few vscode-debugadapter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Marus / cortex-debug / src / gdb.ts View on Github external
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) => {
github Marus / cortex-debug / src / gdb.ts View on Github external
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 = {};
github Marus / cortex-debug / src / gdb.ts View on Github external
protected handleRunning(info: MINode) {
        this.stopped = false;
        this.sendEvent(new ContinuedEvent(this.currentThreadId, true));
        this.sendEvent(new CustomContinuedEvent(this.currentThreadId, true));
    }
github ballerina-platform / ballerina-lang / tool-plugins / vscode / debugger / index.js View on Github external
continueRequest(response, args) { 
        const threadId = this.threads[args.threadId].serverThreadId;
        this.sendEvent(new ContinuedEvent(threadId, false));
        this.debugManager.resume(threadId);
    }
github Marus / cortex-debug / src / mibase.ts View on Github external
protected handleRunning(info: MINode) {
		this.sendEvent(new ContinuedEvent(this.threadID, true));
		this.sendEvent(new CustomContinuedEvent(this.threadID, true));
	}
github APerricone / harbourCodeExtension / client / src / debugger.js View on Github external
harbourDebugSession.prototype.configurationDoneRequest = function(response, args)
{	
	if(this.startGo)
	{
		this.command("GO\r\n");
		this.sendEvent(new debugadapter.ContinuedEvent(1,true));
	}
	this.sendResponse(response);
}
github Dart-Code / Dart-Code / src / debug / flutter_debug_impl.ts View on Github external
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);
	}
github bazelbuild / vscode-bazel / src / debug-adapter / client.ts View on Github external
private handleThreadContinued(
    event: skylark_debugging.IThreadContinuedEvent,
  ) {
    this.sendEvent(new ContinuedEvent(number64(event.threadId)));
    this.pausedThreads.delete(number64(event.threadId));
  }