如何从源地图中获取原始行号和符号 [英] How can I get the original line number and symbol from a sourcemap
本文介绍了如何从源地图中获取原始行号和符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在从站点记录javascript错误,但是文件已最小化,所以我没有得到有意义的行号.我确实有源地图.
I'm logging javascript errors from my site, but the files are minimized so I don't get meaningful line numbers. I do have source maps, however.
是否有服务,脚本,npm模块或任何可帮助我将行号从缩小版本转换"为有用内容的东西?
Is there a service, script, npm module, or anything that can help me "translate" the line numbers from the minified versions into something useful?
推荐答案
我已经使用此npm模块找到了答案:
I have found the answer using this npm module:
https://www.npmjs.org/package/source-map
编辑2015年2月1日
找到了以下处理此问题的项目: https://github.com/epeli/source- map-peek
Found the following project which handles this: https://github.com/epeli/source-map-peek
这篇关于如何从源地图中获取原始行号和符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文