UNPKG

thebugger

Version:

The easiest way to debug your nodejs process.

10 lines (7 loc) 254 B
const inspector = require('inspector'); function thebugger({port, host} = {}) { const {debugOptions} = process.binding('config'); inspector.open(port || debugOptions.port, host || debugOptions.host, true); debugger; } module.exports = thebugger;