如何在 Safari 7 中切换源映射? [英] How do I toggle source mapping in Safari 7?

查看:31
本文介绍了如何在 Safari 7 中切换源映射?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Safari 7 检查器奇妙地将编译后的 javascript 线映射回它来自的咖啡脚本.但是,有时我想直接与检查器中已编译的 javascript 进行交互.如何关闭源映射以便我可以使用原始 javascript?

The Safari 7 inspector is marvelously line-mapping compiled javascript back to the coffeescript it came from. There are times, though, when I want to interact directly with the compiled javascript in inspector. How do I toggle source mapping off so I can play with the raw javascript?

推荐答案

在 Safari 7 中,Source Maps 不是您必须打开或关闭的东西,它们只是始终打开,就像 Web 开发人员工具中的资源始终可用一样.如果您想跳转到原始源,您可以:

In Safari 7, Source Maps are not something that you have to toggle on or off they are just always on like resources are always available in the web developer tool. If you want to jump to the raw source you can:

...Command-单击文件名以跳转到原始源文件中的位置."

"...Command-click the file name to jump to the position in the original source file."

Safari 开发人员指南 提供了更多相关信息.

The Safari Developer Guide has more info on this.

这篇关于如何在 Safari 7 中切换源映射?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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