A utility to get the original source code from a source map

Latest Version

Version
1.2.5
Update
April 14, 2013
Size
142KiB
Developer
ryansylvestre.com
Category
Users
438
Rating
3.85714 ★
Manifest Version
2
Web Store Status
Languages Support
English (United States)
See more
Permissions
Http://*/*
Https://*/*
See more

Source Mapper Application

What are source maps?
http://www.html5rocks.com/en/tutorials/developertools/sourcemaps

Why
This works well in conjunction with JavaScript error capture. However you will need both line and column numbers. This can be difficult with a simple window.onerror handler as that does not provide the column information.

There are various libraries that will wrap native functions with try/catches that could provide the column from error.stack. Use at your own risk (not sure how I feel about them)

In my case (enterprise) we have mostly IE8 users at the moment, during window.onerror it is possible to either A. Walk to callee and build a stack or B. Use window.error.errorcharacter to capture the column number. This is what I am going to be doing for the time being.


Tested with
Source Map Version 3
JavaScript source files

Source: https://github.com/RyanSylvestre/sourceMapper
Link to store: https://chrome.google.com/webstore/detail/enenhalmnhnpofkecebdmgnmmhfkhcpb
Read more

Source Manifest.json

{ "app": {"launch": {"local_path": "index.html"}}, "update_url": "https://clients2.google.com/service/update2/crx", "description": "A utility to get the original source code from a source map", "name": "Source Mapper", "permissions": [ "http://*/*", "https://*/*" ], "minimum_chrome_version": "20", "icons": { "48": "img/icon_48.png", "128": "img/icon_128.png", "16": "img/icon_16.png" }, "manifest_version": 2, "version": "1.2.5"}
Read more

Similar Extensions

icon

GoFullPage - Full Page Screen Capture Extension · Developer Tools 438 77052 ★ 1.81MiB

icon

ColorZilla Extension · Developer Tools 438 3845 ★ 410KiB

icon

JSON Formatter Extension · Developer Tools 438 1859 ★ 19.86KiB

icon

User-Agent Switcher for Chrome Extension · Developer Tools 438 2631 ★ 132KiB

icon

Lighthouse Extension · Developer Tools 438 318 ★ 50.7KiB

icon

Similarweb - Website Traffic & SEO Checker Extension · Developer Tools 438 3255 ★ 1.19MiB

icon

SEOquake Extension · Developer Tools 438 2529 ★ 1.5MiB

icon

Clear Cache Extension · Developer Tools 438 1124 ★ 616KiB

icon

Selenium IDE Extension · Developer Tools 438 286 ★ 3.96MiB

icon

ModHeader - Modify HTTP headers Extension · Developer Tools 438 1061 ★ 676KiB

icon

Postman Interceptor Extension · Developer Tools 438 957 ★ 478KiB

icon

SEO META in 1 CLICK Extension · Developer Tools 438 1108 ★ 462KiB

icon

Stylus Extension · Developer Tools 438 1101 ★ 1.01MiB

icon

CSS Peeper Extension · Developer Tools 438 363 ★ 279KiB

icon

daily.dev | The homepage developers deserve Extension · Developer Tools 438 2460 ★ 2.28MiB

icon

WhatRuns Extension · Developer Tools 438 398 ★ 290KiB

icon

Color Picker for Chrome™ Extension · Developer Tools 438 118 ★ 194KiB

icon

BuiltWith Technology Profiler Extension · Developer Tools 438 407 ★ 54.1KiB

icon

SelectorsHub - XPath Helper Extension · Developer Tools 438 1384 ★ 556KiB

icon

Fake Filler Extension · Developer Tools 438 752 ★ 536KiB

icon

Detailed SEO Extension Extension · Developer Tools 438 193 ★ 266KiB

icon

Responsive Viewer Extension · Developer Tools 438 298 ★ 639KiB

icon

JSON Viewer Pro Extension · Developer Tools 438 137 ★ 349KiB

icon

Grepper Extension · Developer Tools 438 405 ★ 1.41MiB