Whenever our Selenium tests run on our web application, we always have access to the console logs in case there is a javascript crash. The typical error message usually appears like this:
09:27:09.540 [main] ERROR gui.rule.ScreenshotRule - Chrome console: SEVERE https://localhost:56962/bundle.js 94:74996 TypeError: Cannot read property 'map' of undefined
However, just having the reference bundle.js 94:74996
isn't very informative by itself (though working with vim
can still bring some success). We do generate source maps during the bundle build process, but unfortunately Chrome doesn't utilize them when the app crashes. Is it possible to convert these LINE:COLUMN
pairs back to their original source using the source map after the fact?