【问题标题】:Sourcemap not mapping the correct lineSourcemap 没有映射正确的线
【发布时间】:2017-07-13 19:52:58
【问题描述】:

我正在使用 angular2-webpack-starter。我对 chrome 使用 VSCode 和调试器。 经过数小时试图使调试器工作后,我终于设法让断点工作,但似乎它没有映射正确的行。 这与 Chrome Devtool 中的问题相同,因为我的断点位于 TS 文件中,并且与 js 文件一起映射工作。

有什么想法让它发挥作用吗?

【问题讨论】:

    标签: angular visual-studio-code google-chrome-devtools webpack-2


    【解决方案1】:

    基本上,使用source-map 而不是cheap-module-source-map 解决了我的问题。 (在 webpack 配置中)

    https://github.com/angular/angular-cli/issues/2811

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-08
      • 2018-05-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-09
      • 1970-01-01
      相关资源
      最近更新 更多