james icon indicating copy to clipboard operation
james copied to clipboard

Show proper source in Sentry stack trace

Open mitchhentges opened this issue 9 years ago • 3 comments

According to Sentry, it's possible to have stack traces properly show original source code/line numbers.

It would be much better than what we have right now, which just looks at the browserified bundle:

mitchhentges avatar Jun 08 '16 11:06 mitchhentges

Yeah, you basically need to create a release and upload the source maps through the API.

gulp-sentry-release looks like something we can drop into our gulp tasks.

tomitm avatar Jun 09 '16 01:06 tomitm

image

Wow, if it wasn't for the awesome breadcrumbs, this exception would've been pretty useless.

tomitm avatar Jun 09 '16 01:06 tomitm

So, I did a little bit of preliminary digging on this.

  • We're not actually generating JS sourcemaps right now - surprise! 🎊
  • My attempts to generate sourcemaps haven't been working well, possibly because we depend on electron/node's require loading at the moment. Might be related to why Chrome is showing files under (no domain)

Our build might need some work... maybe.

tomitm avatar Aug 25 '16 07:08 tomitm