[英]How to add JS source map into Chrome devtools?
My deployed JavaScript application raises an exception. 我部署的JavaScript应用程序引发了异常。 The Javascript code is obfuscated.
Javascript代码被混淆了。 I would like to know, which line in original source code raises an exception.
我想知道,原始源代码中的哪一行引发了异常。 Source maps are not deployed, so Chrome Devtools can't connect them.
未部署源地图,因此Chrome Devtools无法连接它们。 I may have source maps on my localhost.
我可能在我的localhost上有源映射。
So basically I would like to add source maps from my machine to the browser in order to know the line number, where exceptions occurs. 所以基本上我想从我的机器添加源映射到浏览器,以便知道出现异常的行号。
I tried Add Folder to Workspace
and Map to File System Resource
. 我尝试
Add Folder to Workspace
并Map to File System Resource
。 It does not help. 它没有帮助。 An exception is visible in browser's console, but it still points into obfuscated javascript source and desired line number is not detectable.
在浏览器的控制台中可以看到异常,但它仍然指向混淆的javascript源,并且无法检测到所需的行号。
I may do something wrong. 我可能做错了什么。 Any help is appreciated (including additional extension or other browser usage).
任何帮助表示赞赏(包括额外的扩展或其他浏览器使用)。
As powerful as Workspaces are, there are some limitations you should be aware of. 与Workspaces一样强大,您应该注意一些限制。
Limitations 限制
https://developers.google.com/web/tools/setup/setup-workflow https://developers.google.com/web/tools/setup/setup-workflow
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.