Skip to content

Commit 2297b17

Browse files
author
Paul van Brenk
committed
Merge branch 'add_inspect_brk_parameter' of https://github.com/digeff/nodejstools into digeff-add_inspect_brk_parameter
2 parents de36a3c + 87166dd commit 2297b17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Nodejs/Product/Nodejs/Project/NodejsProjectLauncher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ private void StartWithChromeV2Debugger(string file, string nodePath, bool startB
395395
new JProperty("program", file),
396396
new JProperty("args", scriptArguments),
397397
new JProperty("runtimeExecutable", nodePath),
398-
new JProperty("runtimeArgs", runtimeArguments),
398+
new JProperty("runtimeArgs", runtimeArguments.Concat(new[] { $"--inspect-brk=${debuggerPort}" }).ToArray()), // If we supply the port argument we also need to manually add --inspect-brk=port to the runtime arguments
399399
new JProperty("port", debuggerPort),
400400
new JProperty("cwd", cwd),
401401
new JProperty("console", "externalTerminal"),

0 commit comments

Comments
 (0)