如何在哨兵中获取完整的堆栈跟踪?

发布于 2025-01-19 07:54:43 字数 808 浏览 1 评论 0 原文

我有一个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.
enter image description here

But in this issue I can't do it.
enter image description here

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忆梦 2025-01-26 07:54:43

是不是因为你的项目缺少sourcemap,无法定位具体的错误位置?您需要上传源图。

Is it because your project lacks sourcemap, and cannot locate the specific error location? You need to upload the sourcemap.

橘香 2025-01-26 07:54:43

默认情况下,Sentry 不生成也不上传源图。
特别是,整个过程包括:

  • 生成源映射
  • 将它们上传到 Sentry
  • 验证它们(在哨兵上)

我建议您阅读他们的相关部分 文档

Sentry doesn't generate and doesn't upload sourcemaps by default.
In particular, the whole process consists of:

  • generating the sourcemaps
  • uploading them to Sentry
  • validating them (on sentry)

I suggest you to read the related section of their documentation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文