4 ms·
This is awesome! If there's one area that still needs a lot of work in the js world I think its exception messages. Its hard to believe its 2015 and its still s
by jfaucett 12y ago
This is awesome! If there's one area that still needs a lot of work in the js world I think its exception messages. Its hard to believe its 2015 and its still so hard get clean stack traces for your minified js in production since you can't source map it there.
I wonder how large js apps handle production debugging and error reporting on all browsers? The last time I tried window.onerror it had decent support but not comprehensive support across browsers. Maybe its just me but this seems like a problem really needing to be solved, especially as js apps get bigger and bigger.
- breck 12y agoUse a query string to run an unminified version in prod.
- piotrkaminski 12y agoI just use https://getsentry.com/ https://getsentry.com/. Seems to work pretty well, both across browsers and with my minified code.
- TheAceOfHearts 12y agoWhy can't you use source maps in production?
- pimlottc 12y agoOP may be referring to jQuery's removal of the sourcemap comment last year, starting from 1.11/2.1 [0]. Basically, many sites deploy the minified library without the sourcemap, leading to tons of 404 errors which confuse users. 0: http://bugs.jquery.com/ticket/14415 http://bugs.jquery.com/ticket/14415
- woah 12y agoYou usually step through the code you were last working on and it's in there.