server-inspect-proxy
Node inspect proxy, you can start remotely debugging with it.
Install
npm i server-inspect-proxy
or
yarn add server-inspect-proxy
Usage
You can define the inspection port and which will be automatically proxied.
NODE_OPTIONS=--inspect node ./index.jsnode --inspect ./index.jsnode --inspect --inspect-port=xxx ./index.js
// index.jsconst debug = const createServer = const server = ;
And open chrome://devtools/bundled/js_app.html?ws=YOUR_APP_HOST/__debug__
1.0.6
Use in koa/express:
const Koa = ;const app = ;const debug = const main = { ctxresponsebody = 'Hello World';}; app;