How to use the vscode-debugadapter.Handles 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 facebookarchive / atom-ide-ui / modules / atom-ide-debugger-python / VendorLib / vs-py-debugger / out / client / debugger / Main.js View on Github external
constructor(debuggerLinesStartAt1, isServer) {
        super(path.join(__dirname, '..', '..', '..', 'debug.log'), debuggerLinesStartAt1, isServer === true);
        this.breakPointCounter = 0;
        this._variableHandles = new vscode_debugadapter_1.Handles();
        this._pythonStackFrames = new vscode_debugadapter_1.Handles();
        this.registeredBreakpoints = new Map();
        this.registeredBreakpointsByFileName = new Map();
        this.debuggerLoaded = new Promise(resolve => {
            this.debuggerLoadedPromiseResolve = resolve;
        });
    }
    // tslint:disable-next-line:no-unnecessary-override
github facebookarchive / atom-ide-ui / modules / atom-ide-debugger-python / VendorLib / vs-py-debugger / out / client / debugger / Main.js View on Github external
constructor(debuggerLinesStartAt1, isServer) {
        super(path.join(__dirname, '..', '..', '..', 'debug.log'), debuggerLinesStartAt1, isServer === true);
        this.breakPointCounter = 0;
        this._variableHandles = new vscode_debugadapter_1.Handles();
        this._pythonStackFrames = new vscode_debugadapter_1.Handles();
        this.registeredBreakpoints = new Map();
        this.registeredBreakpointsByFileName = new Map();
        this.debuggerLoaded = new Promise(resolve => {
            this.debuggerLoadedPromiseResolve = resolve;
        });
    }
    // tslint:disable-next-line:no-unnecessary-override
github Marus / cortex-debug / src / gdb.ts View on Github external
constructor(threadID: number, allThreads: boolean = true) {
        super('custom-continued', { threadID: threadID, allThreads: allThreads });
    }
}

const traceThreads = false;

export class GDBDebugSession extends DebugSession {
    private server: GDBServer;
    private args: ConfigurationArguments;
    private ports: { [name: string]: number };
    private serverController: GDBServerController;
    private symbolTable: SymbolTable;

    protected variableHandles = new Handles(VAR_HANDLES_START);
    protected variableHandlesReverse: { [id: string]: number } = {};
    protected quit: boolean;
    protected attached: boolean;
    protected trimCWD: string;
    protected switchCWD: string;
    protected started: boolean;
    protected crashed: boolean;
    protected debugReady: boolean;
    protected miDebugger: MI2;
    protected commandServer: net.Server;
    protected forceDisassembly: boolean = false;
    protected activeEditorPath: string = null;
    // currentThreadId is the currently selected thread or where execution has stopped. It not very
    // meaningful since the current thread id in gdb can change in many ways (when you use a --thread
    // option on certain commands) 
    protected currentThreadId: number = 0;
github DonJayamanne / pythonVSCode / src / client / debugger / pdb / debuggerMain.ts View on Github external
public constructor(debuggerLinesStartAt1: boolean, isServer: boolean) {
        super(debuggerLinesStartAt1, isServer === true);
        this._variableHandles = new Handles();
    }
github Marus / cortex-debug / src / mibase.ts View on Github external
}

class CustomContinuedEvent extends Event implements DebugProtocol.Event {
	body: {
		threadID: number;
		allThreads: boolean;
	}
	event: string;

	constructor(threadID: number, allThreads: boolean = true) {
		super('custom-continued', { threadID: threadID, allThreads: allThreads });
	}
}

export class MI2DebugSession extends DebugSession {
	protected variableHandles = new Handles(VAR_HANDLES_START);
	protected variableHandlesReverse: { [id: string]: number } = {};
	protected quit: boolean;
	protected attached: boolean;
	protected trimCWD: string;
	protected switchCWD: string;
	protected started: boolean;
	protected crashed: boolean;
	protected debugReady: boolean;
	protected miDebugger: MI2;
	protected threadID: number = 1;
	protected commandServer: net.Server;

	public constructor(debuggerLinesStartAt1: boolean, isServer: boolean = false, threadID: number = 1) {
		super(debuggerLinesStartAt1, isServer);
		this.threadID = threadID;
	}
github konstellation-io / science-toolkit / vscode / extensions / ms-vscode.go-0.13.0 / out / src / debugAdapter / goDebug.js View on Github external
constructor(debuggerLinesStartAt1, isServer = false) {
        super('', debuggerLinesStartAt1, isServer);
        this.packageInfo = new Map();
        this.logLevel = vscode_debugadapter_1.Logger.LogLevel.Error;
        this.initdone = 'initdone·';
        this.showGlobalVariables = false;
        this.continueEpoch = 0;
        this.continueRequestRunning = false;
        this.variableHandles = new vscode_debugadapter_1.Handles();
        this.skipStopEventOnce = false;
        this.stopOnEntry = false;
        this.goroutines = new Set();
        this.debugState = null;
        this.delve = null;
        this.breakpoints = new Map();
        this.stackFrameHandles = new vscode_debugadapter_1.Handles();
    }
    initializeRequest(response, args) {
github konstellation-io / science-toolkit / vscode / extensions / ms-vscode.go-0.13.0 / out / src / debugAdapter / goDebug.js View on Github external
constructor(debuggerLinesStartAt1, isServer = false) {
        super('', debuggerLinesStartAt1, isServer);
        this.packageInfo = new Map();
        this.logLevel = vscode_debugadapter_1.Logger.LogLevel.Error;
        this.initdone = 'initdone·';
        this.showGlobalVariables = false;
        this.continueEpoch = 0;
        this.continueRequestRunning = false;
        this.variableHandles = new vscode_debugadapter_1.Handles();
        this.skipStopEventOnce = false;
        this.stopOnEntry = false;
        this.goroutines = new Set();
        this.debugState = null;
        this.delve = null;
        this.breakpoints = new Map();
        this.stackFrameHandles = new vscode_debugadapter_1.Handles();
    }
    initializeRequest(response, args) {
github microsoft / vscode-azure-blockchain-ethereum / src / debugAdapter / variablesHandler.ts View on Github external
constructor(runtime: RuntimeInterface) {
    this._runtime = runtime;
    this._scopes = new Array();
    this._scopes.push(new Scope(SCOPES.all.name, SCOPES.all.ref, false));
    this._handles = new Handles(SCOPES.dynamicVariables.ref);
  }
github DonJayamanne / pythonVSCode / src / client / debugger / vs / VSDebugger.ts View on Github external
public constructor(debuggerLinesStartAt1: boolean, isServer: boolean) {
        super(debuggerLinesStartAt1, isServer === true);
        this._variableHandles = new Handles();
        this.registeredBreakpoints = new Map();
        this.registeredBreakpointsByFileName = new Map();
    }
github hackwaly / vscode-ocaml / src / debug / debug.ts View on Github external
this._launchArgs = args;

        this._debuggerProc = child_process.spawn('ocamldebug', ocdArgs);
        this._debuggerProc.on('exit', () => {
            this.sendEvent(new TerminatedEvent());
        });

        let debuggerEncoding = checkEncoding('ocamldebugEncoding', args.ocamldebugEncoding);
        this._debuggerProc[DECODED_STDOUT] = iconv.decodeStream(debuggerEncoding);
        this._debuggerProc.stdout.pipe(this._debuggerProc[DECODED_STDOUT]);
        this._debuggerProc[DECODED_STDERR] = iconv.decodeStream(debuggerEncoding);
        this._debuggerProc.stderr.pipe(this._debuggerProc[DECODED_STDERR]);

        this._breakpoints = new Map();
        this._functionBreakpoints = [];
        this._variableHandles = new Handles();

        this._wait = this.readUntilPrompt().then(() => { });
        this.ocdCommand(['set', 'loadingmode', 'manual'], () => { });

        let once = false;
        let onceSocketListened = (message: string) => {
            if (once) return;
            once = true;

            if (this._remoteMode) {
                this.sendEvent(new OutputEvent(message));
            } else {
                launchDebuggee();
            }
        };