I am trying to debug my express js application through visual studio code here is my launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 9229
}
],
"compounds": []
}
And my application is running in port 3000 but when i run debugger i got the following error
Debugging with legacy protocol because Node.js version could not be determined (Error: connect ECONNREFUSED 127.0.0.1:9229)