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

前端 未结 6 1030
执念已碎
执念已碎 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:19

    Yes, same thing here.

    Sometimes I can reach the breakpoint I want with some difficulty (the issue seems to be with the sourcemap, but the debugger is still functional).

    I tried fiddling with some settings in the VS-Code debugger launch configuration ("sourceMaps" and "trace"), but to no avail.

    Eventually I rolled back @angular/cli to 1.6.8 and it works fine again.

    Edit: Forgot to mention, in case it helps someone searching for this issue - when starting debugging, the breakpoints disappear from the source file and its tab is marked with "read-only inlined content from source map".

    Also, @angular/cli 1.7.1 does not resolve this.

提交回复
热议问题