-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
When this package is used, we can't exit node --inspect[-*] debug server with ctrl-C, or kill it with SIGTERM. This is due to tapjs/signal-exit#71.
1$ # terminal 1: debug server
1$ cat index.js # very simple script
console.log("a");
1$ node --inspect-brk index.js
2$ # terminal 2: debug client
2$ node inspect --port=9229
connecting to 127.0.0.1:9229 ... ok
Break on start in index.js:1
> 1 console.log("a");
2
debug>
# terminal1
Debugger attached.
^C
1$ # killed with Ctrl-CWhen proper-lockfile is used:
1$ cat index.js
const lockfile = require("proper-lockfile");
console.log("a");
1$ node --inspect-brk index.js
2$ node inspect --port=9229
connecting to 127.0.0.1:9229 ... ok
Break on start in index.js:1
> 1 const lockfile = require("proper-lockfile");
2 console.log("a");
3
debug> n
break in index.js:2
1 const lockfile = require("proper-lockfile");
> 2 console.log("a");
3
# now we can't kill the server!
# terminal1
Debugger attached.
^C^C^C^C^CTested environment:
- Ubuntu 20.04 amd64
- Linux kernel 5.15.39+
- Node.js v16.18.1
Metadata
Metadata
Assignees
Labels
No labels