MCPcopy Create free account
hub / github.com/Snapchat/Valdi / attachNode

Method attachNode

valdi/vscode_debugger/src/test/test.ts:530–545  ·  view source on GitHub ↗
(
    processId: number,
    options: Partial<INodeAttachConfiguration> = {},
  )

Source from the content-addressed store, hash-verified

528 }
529
530 async attachNode(
531 processId: number,
532 options: Partial<INodeAttachConfiguration> = {},
533 ): Promise<NodeTestHandle> {
534 await this.initialize;
535 this._launchUrl = `process${processId}`;
536 this._root.dap.launch({
537 ...nodeAttachConfigDefaults,
538 trace: { logFile: getLogFileForTest(this._testTitlePath) },
539 processId: `inspector${processId}`,
540 __workspaceFolder: this._workspaceRoot,
541 ...options,
542 } as INodeAttachConfiguration);
543 const result = await new Promise(f => (this._launchCallback = f));
544 return result as NodeTestHandle;
545 }
546
547 async launch(
548 content: string,

Callers 1

Calls 2

getLogFileForTestFunction · 0.90
launchMethod · 0.65

Tested by

no test coverage detected