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

8

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

Sign up to request clarification or add additional context in comments.

2 Comments

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.
@PlayingWithBI found a solution? I'm in the same situation
8

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

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

Comments

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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.