我有一个VUE 2应用程序。我使用官方 @sentry/vue软件包设置了哨兵。
在某些问题中,我无法获得完整的详细堆栈跟踪。
此问题 有一个很好的堆栈跟踪。我可以单击并查看代码中的确切行。
但在
我不明白为什么在第一个情况下,Sentry从块 - app-vendors.xxx.js保存了几行代码,但是它在第二期中没有保存代码。
我无法访问此文件,因为我的应用程序已经更新。
如何解决此问题以查看有关错误的更多数据?
I have a vue 2 application. I setup sentry with official @sentry/vue package.
In some issues I can't get full detailed stack trace.
This issue has a good stack trace. I can click and see the exact line in my code.

But in this issue I can't do it.

I don't understand why In the first case sentry saved a few lines of code from chunk-app-vendors.xxx.js, but it didn't save code in the second issue.
I don't have access to this file, because my application has already been updated.
How can I solve this problem to see more data about errors?
发布评论
评论(2)
是不是因为你的项目缺少sourcemap,无法定位具体的错误位置?您需要上传源图。
Is it because your project lacks sourcemap, and cannot locate the specific error location? You need to upload the sourcemap.
默认情况下,Sentry 不生成也不上传源图。
特别是,整个过程包括:
我建议您阅读他们的相关部分 文档。
Sentry doesn't generate and doesn't upload sourcemaps by default.
In particular, the whole process consists of:
I suggest you to read the related section of their documentation.