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).
A source map is a file that maps from the transformed source to the original source, enabling the browser to reconstruct the original source and present the reconstructed original in the debugger. To enable the debugger to work with a source map, you must: generate the source map.
As powerful as Workspaces are, there are some limitations you should be aware of.
Limitations
https://developers.google.com/web/tools/setup/setup-workflow
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With