Skip to content

Commit 9019f5f

Browse files
priscilawebdevLuca Forstner
andauthored
Update docs/platforms/javascript/common/sourcemaps/troubleshooting_js/debug-ids/index.mdx
Co-authored-by: Luca Forstner <[email protected]>
1 parent f4124a2 commit 9019f5f

File tree

1 file changed

+1
-1
lines changed
  • docs/platforms/javascript/common/sourcemaps/troubleshooting_js/debug-ids

1 file changed

+1
-1
lines changed

docs/platforms/javascript/common/sourcemaps/troubleshooting_js/debug-ids/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Stack traces are essential to debug errors, but stack traces that come from gene
1515

1616
To ensure Sentry (and other tools) can provide stack traces that are both readable and useful, you'll want to generate and use [source maps](https://firefox-source-docs.mozilla.org/devtools-user/debugger/how_to/use_a_source_map/index.html). Source maps are additional pieces information (often stored as files) that map the transformed JavaScript back to the original code. This allows Sentry to associate the error with your original source, which means you’ll get stack traces that look like the code you wrote, not the code you generated.
1717

18-
To connect source maps to a JavaScript file, we relied on filenames, but these often were unreliable. For example, a new deploy of a source map with the same filename would mean the source mapping gets incorrectly applied.
18+
To connect source maps to a JavaScript file, we relied on filenames, but these often were unreliable. For example, when you changed the subpath of where your javascript files are served it would mean that the filenames no longer match and the corresponding sourcemap would not be able to be found by Sentry.
1919

2020
`//# source mappingURL=http://example.com/path/to/your/source-map.js.map`
2121

0 commit comments

Comments
 (0)