Visual Studio Code unbound breakpoint Node JS React TypeScript

Viewed 10853

When I try to put a breakpoint and start debugging, the breakpoint becomes hollow and unbound.

Does someone know how to fix this problem? I've already looked around and tried and nothing helped so far...

I'm using VSCODE NODEJS REACT TYPESCRIPT

launch.json

launch.json

tsconfig.json

tsconfig.json

2 Answers

Solved it by opening the terminal first, "npm start" then pressing F5 to start debugging.

Setting sourceMap to true in tsConfig.json solved the issue.

{
  "compilerOptions": {
    ...
    "sourceMap": true
    ...
  }
}
Related