Just pipe the output of any node process with node-inspector enabled to the inspector
function,
it will generate a link to connect to the current debugging session...
node --inspect 2>&1 | inspector
You'd better use --inspect-brk instead of --inspect
to pause at the first line so you can connect to the inspector first.
To debug my webpack.config.ts I use: