Showing full stacktraces

Bugsnag supports unminifying and symbolicating stack traces using source maps to show a full stack trace with methods, file paths, and line numbers for errors.

Generating source maps

Most modern bundlers, minifiers and compilers support the generation of source maps:

When generating source maps you normally have the option to include the source content within the source map or leave it in the external source files. If you leave it external Bugsnag will need access to those source files to display the context of the error (without it we will just display the source file and line number in the stacktrace).

Source maps can also be encoded directly into the JavaScript file rather than linking to a external file, known as inline source maps. This is sometimes used for development purposes or in certain bundling frameworks like Browserify. Bugsnag also supports source maps of this type.

Uploading source maps

You can upload your source maps to Bugsnag using one of the following options:

Alternatively, you can interact with our upload API directly.

You can review a list of your uploaded maps, and delete any unneeded ones, within your dashboard: Project Settings -> Source maps.