create launch.json
file:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"console": "integratedTerminal",
"name": "nodemon",
"program": "${workspaceFolder}\\index.js",
"request": "launch",
"restart": true,
"internalConsoleOptions": "neverOpen",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/nodemon",
"skipFiles": [
"<node_internals>/**",
"${workspaceFolder}/node_modules/**"
]
}
]
}