You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sourcemaps.rst
+37
Original file line number
Diff line number
Diff line change
@@ -359,6 +359,43 @@ Sentry expects that source code and source maps in a given release are uploaded
359
359
360
360
If you upload artifacts **after** an error is captured by Sentry, Sentry will not go back and retroactively apply any source annotations to those errors. Only new errors triggered after the artifact was uploaded will be affected.
361
361
362
+
Verify your source maps work locally
363
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
364
+
365
+
If you find that Sentry is not mapping filename, line, or column mappings correctly, you should verify that your source maps are functioning locally. To do so, you can use Node.js coupled with Mozilla's `source-map library <https://github.com/mozilla/source-map>`_.
366
+
367
+
First, install ``source-map`` globally as an npm module:
368
+
369
+
.. code-block:: bash
370
+
371
+
npm install -g source-map
372
+
373
+
Then, write a script that reads your source map file and tests a mapping. Here's an example:
0 commit comments