未在Chrome中加载打字稿源地图 [英] Typescript sourcemaps not loaded in chrome

查看:62
本文介绍了未在Chrome中加载打字稿源地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试调试chrome中的打字稿代码,该代码已启用chrome中的源地图.但是,如在网络"标签中所示,没有加载任何源地图文件.

I've tried debugging typescript code in chrome which has enabled source maps in chrome. But no sourcemap files are loaded as can be seen in the network tab.

我正在使用VS2012和最新的Web Essentials软件包.

I'm using VS2012 and the latest web essentials package.

有什么下一步建议吗?

推荐答案

您不会在网络"标签中看到源地图文件.如果转到源"选项卡,您将在左侧的源"列表中看到您的打字稿文件.从那里可以设置断点.

You will not see sourcemap files in the network tab. If you go to the Sources tab you will see your typescript files in the list of Sources along the left. From there you can set your breakpoints.

这篇关于未在Chrome中加载打字稿源地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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