-
I am using Sentry for collecting JavaScript errors. Also, I do not use build tools like Webpack or Vite to transpile JavaScript. Therefore, I am not outputting source maps. Here's an example. In this case, I'd like to show the source code of // somethingWrong.js
function somethingWrong() {
throw new Error("somethingWrong");
}
somethingWrong(); <!-- index.html -->
<script src="path/to/somethingWrong.js"></script> |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can upload your source files to Sentry and it will show you the source code when an error happens. You would do this just like described here, minus the source maps. The command is unfortunately called |
Beta Was this translation helpful? Give feedback.
-
@lforst ![]()
When I added |
Beta Was this translation helpful? Give feedback.
You can upload your source files to Sentry and it will show you the source code when an error happens. You would do this just like described here, minus the source maps. The command is unfortunately called
sourcemaps
but don't let that distract you.