MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / attachDebugger

Function attachDebugger

src/test/dart_debug/dart_cli.test.ts:29–35  ·  view source on GitHub ↗
(vmServiceUri: string | undefined, extraConfiguration?: { program: string | undefined, [key: string]: any })

Source from the content-addressed store, hash-verified

27 });
28
29 async function attachDebugger(vmServiceUri: string | undefined, extraConfiguration?: { program: string | undefined, [key: string]: any }): Promise<vs.DebugConfiguration & DartVsCodeLaunchArgs> {
30 const config = await getAttachConfiguration(Object.assign({ vmServiceUri }, extraConfiguration));
31 if (!config)
32 throw new Error(`Could not get launch configuration (got ${config})`);
33 await dc.start();
34 return config;
35 }
36
37 it("runs to completion", async () => {
38 const config = await startDebugger(dc, helloWorldMainFile);

Callers 1

dart_cli.test.tsFile · 0.70

Calls 2

getAttachConfigurationFunction · 0.90
startMethod · 0.45

Tested by

no test coverage detected