admin管理员组文章数量:1289911
My deployed JavaScript application raises an exception. The Javascript code is obfuscated. 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. I may have source maps on my 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
. 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.
I may do something wrong. Any help is appreciated (including additional extension or other browser usage).
My deployed JavaScript application raises an exception. The Javascript code is obfuscated. 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. I may have source maps on my 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
. 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.
I may do something wrong. Any help is appreciated (including additional extension or other browser usage).
Share Improve this question asked Sep 29, 2016 at 21:06 Andrii SkaliukAndrii Skaliuk 4381 gold badge6 silver badges15 bronze badges 1- 3 I think this should work: stackoverflow./a/36210861/1290545 Otherwise, you could take the call stack string and process it using StackTrace.js mattzeunert./2016/07/07/… – Matt Zeunert Commented Oct 3, 2016 at 10:02
1 Answer
Reset to default 3As powerful as Workspaces are, there are some limitations you should be aware of.
Limitations
- Only style changes in the Elements panel are persisted; changes to the DOM are not persisted.
- Only styles defined in an external CSS file can be saved. Changes to element.style or to inline styles are not persisted. (If you have inline styles, they can be changed on the Sources panel.)
- Style changes in the Elements panel are persisted immediately without an explicit save -- Ctrl + S or Cmd + S (Mac) -- if you have the CSS resource mapped to a local file.
- If you are mapping files from a remote server instead of a local server, when you refresh the page, Chrome reloads the page from the remote server. Your changes still persist to disk and are reapplied if you continue editing in Workspaces.
- You must use the full path to a mapped file in the browser. Even your index files must include .html in the URL, in order to see the staged version.
https://developers.google./web/tools/setup/setup-workflow
本文标签: javascriptHow to add JS source map into Chrome devtoolsStack Overflow
版权声明:本文标题:javascript - How to add JS source map into Chrome devtools? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741445291a2379162.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论