admin管理员组文章数量:1391934
Is it possible to load a remote source maps file in chrome dev-tools?
My js file includes //# sourceMappingURL=file.js.map
. but this file is actually located in a different location (for security reasons..).
Can I tell chrome dev-tools the source maps file location manually?
Is it possible to load a remote source maps file in chrome dev-tools?
My js file includes //# sourceMappingURL=file.js.map
. but this file is actually located in a different location (for security reasons..).
Can I tell chrome dev-tools the source maps file location manually?
Share Improve this question asked Jun 8, 2016 at 7:59 Yoni DabushYoni Dabush 2204 silver badges13 bronze badges1 Answer
Reset to default 7So the answer for this is rather simple.
- Go to the sources tab in chrome dev tools and find your script
- Click on the file to open it
- Do not use pretty print! the context menu on the file content changes if you pretty print it.
- Right click on the file content and select "Add source maps..."
- Enter the source maps file location (full URL with protocol)
本文标签: javascriptLoad remote source maps in chrome devtoolsStack Overflow
版权声明:本文标题:javascript - Load remote source maps in chrome dev-tools - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744734450a2622240.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论