Allow running child with --inspect
wmertens opened this issue · 4 comments
wmertens commented
This can be achieved easily with
cluster.setupMaster({ exec: existsAt, execArgv: ['--inspect'].concat(process.execArgv) });
but I'd like to know how to make it configurable. Second argument with options? With Boolean? First argument either string or options?
Also: make port configurable? auto-detect an open port?
hartono-sulaiman-kaskus commented
Hello,
I cannot change the port.
This is my config
new StartServerPlugin({
name: filename,
nodeArgs: ['--inspect=127.0.0.1:9231' ]
}),
it always appends --inspect-port=9230
after executed
Debugger listening on ws://127.0.0.1:9230/c4cec3b5-cf2c-45f6-a72b-4921794bdc41
For help see https://nodejs.org/en/docs/inspector
Hash: 91c98894a7a5ef50a4cd
Version: webpack 3.5.1
ps ax | grep node
76143 s063 S+ 0:02.65 /usr/local/Cellar/node/8.7.0/bin/node --inspect=127.0.0.1:9231 --inspect-port=9230
wmertens commented
Try adding '--inspect-port=9231' as the second nodeArgs array entry?
…On Mon, Dec 4, 2017, 9:01 AM hartono-sulaiman-kaskus, < ***@***.***> wrote:
Hello,
I cannot change the port.
This is my config
new StartServerPlugin({
name: filename,
nodeArgs: ['--inspect=127.0.0.1:9231' ]
}),
it always appends --inspect-port=9230 after executed
ps ax | grep node
76143 s063 S+ 0:02.65 /usr/local/Cellar/node/8.7.0/bin/node --inspect=127.0.0.1:9231 --inspect-port=9230
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADWlqdigR49kE8_cLi3UYgoOKq_Gyp2ks5s86bCgaJpZM4MSIIi>
.
hartono-sulaiman-kaskus commented
i tried it before
nodeArgs: ['--inspect=127.0.0.1:9231', '--inspect-port=9231' ]
it became like this
76685 s063 S+ 0:01.81 /usr/local/Cellar/node/8.7.0/bin/node --inspect=127.0.0.1:9231 --inspect-port=9231 --inspect-port=9230 /Users/dev-115/projects
wmertens commented
Well, no idea, this is due to node, not the plugin. Maybe the inspect
argument needs to be different?
How are you running webpack?
…On Mon, Dec 4, 2017, 9:12 AM hartono-sulaiman-kaskus, < ***@***.***> wrote:
i tried it before
nodeArgs: ['--inspect=127.0.0.1:9231', '--inspect-port=9231' ]
it becomes like this
76685 s063 S+ 0:01.81 /usr/local/Cellar/node/8.7.0/bin/node --inspect=127.0.0.1:9231 --inspect-port=9231 --inspect-port=9230 /Users/dev-115/projects
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADWlq0RMKLt_de7M9yaMNrc3bXXkPKrks5s86l8gaJpZM4MSIIi>
.