I have added the configuration in the launch.json file with the following details :
{
"name": "Attach"
"type": "node",
// TCP/IP address. Default is "localhost".
"address": "localhost",
// Port to attach to.
"port": 5858
}
Now I start my app with the following command : node --debug-brk ./bin/www
When i go to VSCode and select Attach
in the debugging menu on the top and click on the play button. It attaches, but when i go to browser and open a page, it doesn't it the breakpoint or the handler function in my index.js
file. Can you please help what could be going wrong?
Your breakpoints are probably set too early and are not registered by node. It should help if you set the breakpoints after you have attached.
We have improved this experience in VSCode and it should be available in 0.4.0
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments