简体   繁体   中英

Visual Studio Code unbound breakpoint Node JS React TypeScript

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

启动.json

tsconfig.json

tsconfig.json

解决方法是先打开终端,“npm start”,然后按F5开始调试。

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM