21

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

3 Answers 3

7

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

2
  • 3
    Cannot do it in my case because I don't have node in my local computer but on the docker image running the react app. Commented Jul 6, 2022 at 17:45
  • 1
    @PlayingWithBI found a solution? I'm in the same situation Commented Mar 10, 2023 at 12:50
7

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

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

Well, I just had the same problem on an open source project. I tried several things, like updating the VSCode, "sourceMap" was already true, but nothing helped.

Then I realised that there were discrepancies in launch.json: While the whole project was working on the "dist" directory, launch.json was working on "out".

enter image description here

Now it works as expected. Of course I will create a pull request.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.