source-maps

Will the source mapping in Google Chrome push to Error.stack

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 08:53:31
问题 Within Google Chrome, I was wondering if stack traces will, in the future, provide mapping support. Currently, using source maps, throwing an error will provide the line number link to my TypeScript files, however... When calling the Error.stack, it gives me the JavaScript lines and files. Here's a reference picture: http://puu.sh/4DTOG.png As you'll notice, the actual line the error is on is linked to the TypeScript file, but the stack trace links to the JavaScript files. 回答1: There is no

Source maps in Ruby on Rails through sprockets

别来无恙 提交于 2019-12-20 08:57:18
问题 I'd like to add source map support on a rails 3.2 application I am working on. As far as I know, generating source maps is not supported by Sprockets and from its github page it looks like the feature is planned for 4.0. I am working with Sprockets 2.2 and I think monkey patching is the only way to go. The module Processing under the main Sprockets module gives access to the js_compressor function which can be patched to generate source map for a single file. But, I don't know how to add this

Breakpoint debugging minfied/mangled/compiled variables

此生再无相见时 提交于 2019-12-20 08:46:44
问题 Working on building JavaScript sourcemaps into my workflow and I've been looking for some documentation on a particular part of debugging source maps. In the picture below I'm running compressed Javascript code, but through the magic of source maps Chrome debugger was able to reconstruct the seemingly uncompressed code for me to debug: However, if you look at the local variables, someNumber and someOtherNumber are not defined. Instead, we have a and r , which are the compiled variable names

file is being assigned a //# sourceMappingURL but already has one

回眸只為那壹抹淺笑 提交于 2019-12-20 08:27:51
问题 I just notice Firefox console outputs the following error for every single .js/.coffee file in my project (even the packages). -file- is being assigned a //# sourceMappingURL, but already has one Chrome's console doesn't show anything. I tried deleting all the .map files and clearing Firefox's cache but I'm still getting the errors. 回答1: It's a warning (not an error) and it is a bug ( https://bugzilla.mozilla.org/show_bug.cgi?id=1020846 fixed in FF 33) This warning/error also applies to other

sourceMap with sass-loader and postcss-loader in Webpack

你离开我真会死。 提交于 2019-12-20 04:22:57
问题 I'm trying to enable sourceMaps in webpack but there seems to be a problem with sass-loader and postcss-loader combination. With both sass-loader and postcss-loader enabled my console shows "no source": But when I disable postcss-loader the sourceMap works fine and points to "typography" file: webpack.config.js const path = require('path'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { mode: 'development', entry: './src/index.js', output: { path: path

How can I debug modular TypeScript with source maps?

拥有回忆 提交于 2019-12-19 09:25:09
问题 I am having an impossible time trying to get TypeScript debugging working in Chrome Dev Tools. I've generated source maps for all my .ts files, and the javascript looks correct, but Chrome only loads the js file that is referenced in index.html and ignores all the modules. This kinda makes sense, because the Typescript compiler does not seem to be doing anything with my modules. If someone could explain what I'm doing wrong in the following example, that would be great. My project setup is

How to debug why MS Edge/IE11 does not load sourcemap

徘徊边缘 提交于 2019-12-19 05:11:03
问题 I made some source+map concatenation and result works in Firefox and Chrome, but does not even request bundle.js.map from webserver in MS Edge and IE11. Actual JS file is served from http://localhost:8080/bundle.js bundle.js ends with line: //# sourceMappingURL=bundle.js.map Tried both end it with new line and without, does not work in both cases. Is there some checklist to look at or even some "validator"? 回答1: Microsoft Edge expects a single sourcemap comment, located at the end of the file

sass error in rails app on heroku: can't dump anonymous class

喜你入骨 提交于 2019-12-18 19:06:38
问题 I'm getting the following warnings from heroku after trying to enable source maps for chrome http://blog.vhyza.eu/blog/2013/09/22/debugging-rails-4-coffeescript-and-sass-source-files-in-google-chrome/ What do they indicate and what, if anything, should I change? My gemfile: source 'https://rubygems.org' ruby '2.0.0' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.0.0' # Use sqlite3 as the database for Active Record #gem 'sqlite3' gem 'pg' gem 'devise' gem 'font

Source Maps not working with Webpack

混江龙づ霸主 提交于 2019-12-18 13:59:51
问题 I'm pretty new to webpack and having some trouble configuring it to produce the necessary source maps. In the devtools it says Source Map detected but it shows the bundle and not the original code: Here is my webpack.config.js: module.exports = { entry: [ 'webpack-dev-server/client?http://localhost:8080/', 'webpack/hot/dev-server', "./src/index.js" ], output: { filename: 'bundle.js', path: '/', }, debug: true, devtool: 'source-map', resolve: { extensions: ['', '.jsx', '.scss', '.js', '.json']

Google Chrome “Failed parsing SourceMap” : css.map (Web Essential)

帅比萌擦擦* 提交于 2019-12-18 10:43:21
问题 Visual Studio 2013 UP5 + Web Essential's (v. 2.6.36) generated css.map files are invalid in "Google Chrome", however it is valid in "Firefox". Due to this it became impossible to debug less files in google chrome. Currently, I am using Web Essential 2.6.36 (+ Visual Studio 2013 Up5). I can disable the source map from google chrome's developer's setting. Which will remove those errors, however still we cannot debug less files and change the style. Which is a terrible problem. Any advice will