How to locate where the Sentry / RavenJS exceptions are coming from?

We use sentry/ravenjs to catch the production exceptions, from exception report what we can get is the issue url and user agent, but the business logic is complex and if we only know the the issue url, it’s not easy to locate which part of the code has bugs. Is there some ways that ravenjs can record information more accurate, like the which method and which file throw exceptions?

It sounds like you’re not actually capturing errors, but just doing something like captureMessage. All errors should have a stacktrace associated which would let you identify the code affected.