VS Code debugging : breakpoint is not hitting

Issue

This Content is from Stack Overflow. Question asked by Jois_Cool

I have a sailsjs app in docker container and would like to debug through vs code.
I currently have nodemon working and debugger listening at a port.
Strangely my vs code is not hitting breakpoint.I tried below launch config.Anyone faced same issue.

“configurations”: [
{
“name”: “Docker: Attach To Node”,
“type”: “node”,
“request”: “attach”,
“address”: “localhost”,
“restart”: true,
“port”: 9229,
“localRoot”: “${workspaceFolder}”,
“skipFiles”: [
“<node_internals>/**”
],
“remoteRoot”: “usr/src/app”,
“protocol”: “inspector”
},
On click on play green button nothing happens. VS code version 1.70.2



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?