I\'ll be very specific here in the hope that folks who understand this can edit to rephrase to the general situation.
Currently when you run "node debug", it sp
Use inner http module:
const isPortFree = port => new Promise(resolve => { const server = require('http') .createServer() .listen(port, () => { server.close() resolve(true) }) .on('error', () => { resolve(false) }) })