Commit 9b88eef8 authored by Ari Leo Frankel's avatar Ari Leo Frankel Committed by Tim Neutkens

fix(bin/next:inspect): Allow node inspect flag to be used (#4160)

This accepts arguments to a node --inspect flag as well as other debugging node flags.

Resolves #4151 
parent 2b16d8b2
......@@ -32,8 +32,9 @@ if (new Set(['--version', '-v']).has(cmd)) {
process.exit(0)
}
if (new Set(process.argv).has('--inspect')) {
nodeArgs.push('--inspect')
const inspectArg = process.argv.find(arg => arg.includes('--inspect'))
if (inspectArg) {
nodeArgs.push(inspectArg)
}
if (new Set(['--help', '-h']).has(cmd)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment