Closed rhyek closed 6 years ago
I adding the following launch configuration:
{
"type": "node",
"request": "launch",
"name": "Launch",
"runtimeExecutable": "yarn",
"runtimeArgs": [
"dev"
],
"port": 3001,
"useWSL": true
}
Where yarn dev
is nodemon --inspect=3001 --watch src/server --ext ts --exec ./node_modules/.bin/ts-node --project ./src/server ./src/server/index.ts
and I get the same issue with the breakpoints.
Any updates on this? I'm experiencing the same problem.
Same problem here, with my code running in a docker container
same problem, with node v8.10 + nodemon + typescript
If you have your testing framework setup to collect coverage, that could be the problem. Try turning off coverage while debugging.
Haven't encountered this again.
(3 theme extensions excluded)
Steps to Reproduce:
./node_modules/.bin/ts-node --inspect=3001 --project ./src/server ./src/server/index.ts
.ts
files are greyed out and have the tooltip "Breakpoints set but not yet bound".If I run the same command from Windows command prompt and run the same debug configuration without
localRoot
andremoteRoot
I can hit breakpoints perfectly.I also notice that when run from Windows, I have some output of my program in the Debug Console stating the file's origin as
file:///c%3A/Users/Carlos/Dev/personal/boilerplates/express-react/src/server/index.ts
while when run from WSL it'sdebug:/mnt/c/Users/Carlos/Dev/personal/boilerplates/express-react/src/server/index.ts?session%3D6747a367-f75f-4749-8249-57bc7bf64603%26ref%3D1001
. Not sure if that's relevant.