Angular CLI 1.7.0 and Visual Studio Code - can't set breakpoints

前端 未结 6 1032
执念已碎
执念已碎 2020-11-29 07:46

I\'m using the Chrome Debugger plugin in Visual Studio Code to debug an Angular application. After upgrading to use angular/cli@1.7.0, we can no longer hit breakpoints in t

6条回答
  •  孤独总比滥情好
    2020-11-29 08:21

    For those coming across this the fix is to modify your launch.json sourceMapPathOverrides as follows:

    "sourceMapPathOverrides": { 
        "webpack:/*": "${webRoot}/*" 
    }
    

    This fixed it for me with the latest @angular/cli (version 1.7.3).

    Answer was found here.

提交回复
热议问题