Skip to content

Commit e24d193

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 0c762c0 commit e24d193

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
@@ -13,7 +13,7 @@ As a result, the JavaScript code running in production is typically not the same
1313

1414
Stack traces are essential to debug errors, but stack traces that come from generated JavaScript are often unreadable or unusable! They look nothing like the code you wrote and you can't connect them to your source code repository.
1515

16-
To ensure Sentry (and other tools) can provide stack traces that are both readable and useful, youll 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 files that map the transformed JavaScript back to the original code. This allows Sentry to trace the error to your original source, which means you’ll get stack traces that look like the code you wrote, not the code you generated.
16+
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

1818
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.
1919

0 commit comments

Comments
 (0)