Type into package.json
"scripts": {
"start": "nodemon --delay 5 --inspect=0.0.0.0:9229 ./server.js --exec babel-node -e js",
"test": "echo \"Error: no test specified\" && exit 1"
},
type into launch.json
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 9229
}