Can I translate a stacktrace from minified code into a human readable stacktrace using sourcemaps?

时光毁灭记忆、已成空白 提交于 2019-12-05 01:23:25

Raygun developed a Source Maps Validator which let's you upload your source map file.

If you do that, then you can take the line number and column number from the stacktrace of your minified sourcecode to identify the original source which is causing the problem.

Example:

Stacktrace on production (in .min.js file)

Cannot read property 'split' of undefined at https://app.wire.com/min/wire-vendor.min.js?2016-06-06-15-36-prod:15:25804

Reading the stacktrace, the line number is 15 and the column number is 25804 (last two parts of the url).

Result:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!