source-maps

Debugging in GWT Super Dev Mode?

纵然是瞬间 提交于 2019-11-30 20:47:14
So far, debugging in GWT super dev mode seems to be a real pain. If there are any errors, there is no stack trace, just a cryptic message given in the chrome console. Is there a way to get all errors to print a stack trace, like in the dev mode? I already have source maps on I believe, since if I go to Sources in Chrome's dev tools, I can see the source code of my java classes. Click Upvote GWT.setUncaughtExceptionHandler lets you set an exception handler, which will handle all exceptions. You can then get the stacktrace of that exception using something like this code , and then print

Getting source maps working with evaluated code

大憨熊 提交于 2019-11-30 17:13:17
问题 I have a build script that runs all my code through uglifyjs, does a bunch of fancy caching stuff, and ultimately runs eval( code ) on some JavaScript files. I'm trying to get this whole process up and running with source maps, but I can't seem to get it working as long as I'm using eval . If I link to the files directly using <script src="..."> it works fine. In my eval code, I have: code, blah blah blah //@ sourceMappingURL=/cache/618a67795c7460184bd9b99020cbb9fd.map and then in that .map

webpack + babel loader source map references empty file

眉间皱痕 提交于 2019-11-30 11:39:09
I have an es6 project which I bundle using webpack + babel loader. When I open the devtools I can see 'webpack://' and all my sources (es6) underneath. The problems are: breakpoints don't hit and function references directs me to a file name '?d41d which has the following content: undefined /** WEBPACK FOOTER ** ** **/ if I drill down from document script to a function in my bundle I get to the ?d41d file as well my webpack.config.js: module.exports = { debug: true, devtool: 'cheap-module-eval-source-map', entry: "entry.js", output: { path: "C:/html5/", filename: "bundle.js" }, module: {

Source Maps not working with Webpack

淺唱寂寞╮ 提交于 2019-11-30 10:59:11
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'] }, module: { loaders: [ { test: /(\.js|\.jsx)$/, exclude: /node_modules/, loaders: ['react-hot','babel

Debug compiled ES6 nodejs app in WebStorm

吃可爱长大的小学妹 提交于 2019-11-30 08:17:26
I want to debug a node app that runs from babel compiled ES6 files. I have my ES6 source in an src folder and the babel ES5 equivalent in a build folder. Project root | | build | > ES5 Compiled files | | src | > ES6 Source files My goal: Place breakpoints directly in my ES6 source. I have generated proper source maps and I made a node debug configuration that runs the ES5 main file with project root set as working directory. I can break when I set breakpoints in ES5 compiled files, and it automatically shows my ES6 source. However I'd like to place breakpoints directly in the ES6 source . Is

My source-mapped breakpoints aren't working correctly in Google Chrome

时光总嘲笑我的痴心妄想 提交于 2019-11-30 08:01:33
I have created a concatenated, minified file through the Node.js wrapper for Google Closure Compiler . When I open the Developer Tools in Google Chrome, both the source map and the mapped files all load appropriately. A problem I'm having is that breakpoints aren't triggering in the source map files like they would running an unminified, separate-file session. Sometimes I'll try to place a breakpoint in a script and it will jump several lines down rather than where I'm trying to set it. But what is most frustrating is that when I can set a breakpoint, they aren't triggered! I'll set one in the

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

不问归期 提交于 2019-11-29 22:58:19
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 be appreciated. Thank you in advance. PeterMacko Problem is that WebEssentials saves files in UTF8 with

webpack + babel loader source map references empty file

梦想与她 提交于 2019-11-29 17:21:35
问题 I have an es6 project which I bundle using webpack + babel loader. When I open the devtools I can see 'webpack://' and all my sources (es6) underneath. The problems are: breakpoints don't hit and function references directs me to a file name '?d41d which has the following content: undefined /** WEBPACK FOOTER ** ** **/ if I drill down from document script to a function in my bundle I get to the ?d41d file as well my webpack.config.js: module.exports = { debug: true, devtool: 'cheap-module

Gulp-generated source maps don't work in Chrome

只谈情不闲聊 提交于 2019-11-29 13:21:39
Apart from enabling source maps in Chrome, in my gulpfile.js I use errLogToConsole: true, sourceComments: 'map', sourceMap: 'sass' as arguments when calling sass based on this answer : gulp.task('sass', function() { return gulp.src('../assets/styles/**/*.scss') .pipe(plumber({ errorHandler: onError })) .pipe(sass({errLogToConsole: true, sourceComments: 'map', sourceMap: 'sass'})) .pipe(autoprefixer()) .pipe(gulp.dest('../dist/styles')) .pipe(browserSync.reload({ stream: true })) }); Yet SCSS content still doesn't show up in DevTools. Why? Note: source map comments do show up in compiled CSS as

How to disable source maps for React JS Application

时光怂恿深爱的人放手 提交于 2019-11-29 12:23:12
问题 My react folder structure is as below I've not used the create-react-app version. I tried using GENERATE_SOURCEMAP=false . But It didn't work. Where can I find the .map files. How can I delete those files? I cannot find a build folder. I've tried using the below script But It cannot work in removing source maps "scripts": { "start": "react-scripts start", "build": "GENERATE_SOURCEMAP=false && npm run build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" }, 回答1: just