GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: use --inspect-brk with Node 8+ · nodejs/node-inspect@2c1ed27

This repository was archived by the owner on Feb 1, 2022. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • _inspect.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/_inspect.js‎

Copy file name to clipboardExpand all lines: lib/_inspect.js
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ function runScript(script, scriptArgs, inspectHost, inspectPort, childPrint) {
9696
return portIsFree(inspectHost, inspectPort)
9797
.then(() => {
9898
return new Promise((resolve) => {
99-
const args = [
100-
'--inspect',
101-
`--debug-brk=${inspectPort}`,
102-
].concat([script], scriptArgs);
99+
const needDebugBrk = process.version.match(/^v(6|7)\./);
100+
const args = (needDebugBrk ?
101+
['--inspect', `--debug-brk=${inspectPort}`] :
102+
[`--inspect-brk=${inspectPort}`])
103+
.concat([script], scriptArgs);
103104
const child = spawn(process.execPath, args);
104105
child.stdout.setEncoding('utf8');
105106
child.stderr.setEncoding('utf8');

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.