This PR updates behavior of es6-init to resolve paths to init script, explicitly filtering debugger protocol argument.
Some node.js debugger supports --inspect protocol, (primariliy vscode-node-debug2https://github.com/Microsoft/vscode-node-debug2) injects --inspect and --debug-brk for their own order and ignore original process argument specified, makes prebuild-compile fail to resolve script path. This PR simply filters them out, preserve original behavior of looking up script paths.
With this PR & latest electron (1.7.x), prebuilt-compile can use vs code config like below to debug main process.
This PR updates behavior of
es6-init
to resolve paths to init script, explicitly filtering debugger protocol argument.Some node.js debugger supports
--inspect
protocol, (primariliyvscode-node-debug2
https://github.com/Microsoft/vscode-node-debug2) injects--inspect
and--debug-brk
for their own order and ignore original process argument specified, makes prebuild-compile fail to resolve script path. This PR simply filters them out, preserve original behavior of looking up script paths.With this PR & latest electron (1.7.x), prebuilt-compile can use vs code config like below to debug main process.
Interestingly, source maps and others are working out of box.