UNPKG
thebugger
Version:
latest (1.0.0)
1.0.0
The easiest way to debug your nodejs process.
github.com/fabiomcosta/thebugger
fabiomcosta/thebugger
thebugger
/
index.js
10 lines
(7 loc)
•
254 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
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;