Skip to content

Commit 812d082

Browse files
committed
Fixing Cannot debug npm script using Yarn microsoft#55103
1 parent d6d9cd2 commit 812d082

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/npm/src/tasks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ async function readFile(file: string): Promise<string> {
289289
}
290290

291291
export function extractDebugArgFromScript(scriptValue: string): [string, number] | undefined {
292-
// matches --debug, --debug=1234, --debug-brk, debug-brk=1234, --inspect,
293-
// --inspect=1234, --inspect-brk, --inspect-brk=1234,
292+
// matches --debug, --debug=1234, --debug-brk, debug-brk=1234, --inspect,
293+
// --inspect=1234, --inspect-brk, --inspect-brk=1234,
294294
// --inspect=localhost:1245, --inspect=127.0.0.1:1234, --inspect=[aa:1:0:0:0]:1234, --inspect=:1234
295295
let match = scriptValue.match(/--(inspect|debug)(-brk)?(=((\[[0-9a-fA-F:]*\]|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z0-9\.]*):)?(\d+))?/);
296296

@@ -321,7 +321,7 @@ export function startDebugging(scriptName: string, protocol: string, port: numbe
321321
name: `Debug ${scriptName}`,
322322
runtimeExecutable: packageManager,
323323
runtimeArgs: [
324-
'run-script',
324+
'run',
325325
scriptName,
326326
],
327327
port: port,

0 commit comments

Comments
 (0)