During the development of a chrome extension, debugging was difficult because
Previously, Honeybadger could only download the source map files which were public and our source maps were inside the
.crx package which was inaccessible to honeybadger.
Recently, Honeybadger released a new feature to upload the source maps to Honeybadger. We have written a grunt plugin to upload the source maps to Honeybadger.
Here is how we can upload source map to Honeybadger.
First, install the grunt plugin.
1npm install --save-dev grunt-honeybadger-sourcemaps
Configure the gruntfile.
1 2We can get the `appId` and `token` from Honeybadger project settings. 3 4 5~~~plaintext 6grunt upload_sourcemaps
Now, we can upload the source maps to Honeybadger and get better error stack trace.
Clone the following repo.
1git clone https://github.com/bigbinary/grunt-honeybadger-sourcemaps
token in Gruntfile.js
It should upload the sample source maps to your project.