调试成angular 2打字稿源代码 [英] debugging into angular 2 typescript source code

查看:55
本文介绍了调试成angular 2打字稿源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由angular-cli生成的angular2项目.我希望能够在chrome开发工具中调试angular2打字稿源代码(不是我自己的打字稿代码,而是实际的angular2代码).node_modules下的angular2 npm包仅包含已转译的javascript文件,但它们包含源映射.我该如何进行这项工作?谢谢.

I have an angular2 project generated by angular-cli. I want to be able to debug the angular2 typescript source code in chrome dev tools (not my own typescript code but the actual angular2 code). The angular2 npm package under node_modules only contains the transpiled javascript files but they contain source mappings. How can I make this work? Thx.

推荐答案

显然,在angular-cli中这还不可能,因为它们忽略了node_modules中的源映射(

Apparently, this is not yet possible in angular-cli since they ignore source maps in node_modules (https://github.com/angular/angular-cli/issues/1838).

这篇关于调试成angular 2打字稿源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆