Mozilla and WebKit to support Source Maps

Source Maps will streamline the debugging process

Source Maps will streamline the debugging process

The tedious process of debugging and setting break points in minified JavaScript is set to become a lot easier as Mozilla and WebKit are both working to support Source Maps.

A Mozilla spokesperson told us: "Often, the JavaScript running on a web page is not the same as the original code that the programmer wrote. Sometimes it has been "minified" for quick downloading, or run through a compiler like CoffeeScript. With Source Maps, errors that come up in JavaScript are displayed with the line of the developer's original code rather than the final, generated JavaScript being run by the browser. Source Maps remove a step from the JavaScript debugging process. To fix a bug, developers will no longer need to look at a line of JavaScript that the browser sees and then hunt that line down in their original source files."

There is detailed information on the progress of the Mozilla work over on the wiki at wiki.mozilla.org/DevTools/Features/SourceMap, and you can read about the WebKit work at bugs.webkit.org/show_bug.cgi?id=63940. The Mozilla document states that this feature is targeted for release in Firefox 9.

The Internet Explorer developer tools are already able to unminify minified JavaScript for debugging.

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of eight full-time members of staff: Editor Georgia Coggan, Deputy Editor Rosie Hilder, Ecommerce Editor Beren Neale, Senior News Editor Daniel Piper, Editor, Digital Art and 3D Ian Dean, Tech Reviews Editor Erlingur Einarsson and Ecommerce Writer Beth Nicholls and Staff Writer Natalie Fear, as well as a roster of freelancers from around the world. The 3D World and ImagineFX magazine teams also pitch in, ensuring that content from 3D World and ImagineFX is represented on Creative Bloq.