electron - 无法在Sentry上获得可读的 Electron 崩溃报告

标签 electron crash-reports sentry

我正在使用crashReporter处理 Electron 应用程序中的崩溃并将报告发送到sentry.io。
目的是查看JS的哪一部分导致了应用程序崩溃。为了模拟崩溃,我正在做“process.crash()”。要查看源代码跟踪,我正在从文档中安装哨兵,但源代码从未出现在哨兵中。
这是CrashReporter初始化代码:

   crashReporter.start({
      companyName: '...',
      productName: '...',
      uploadToServer: true,
      submitURL: 'https://....ingest.sentry.io/api/.../minidump/?sentry_key=...'
    });
Sentry的添加方式为:
sentry-wizard --integration electron
npm install --save-dev @sentry/cli electron-download
node sentry-symbols.js
Webpack配置:
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
var config = {
  target: 'node',
  devtool: 'source-map',
  plugins: [
    new webpack.ProgressPlugin(),
    new webpack.EnvironmentPlugin(),
    new SentryWebpackPlugin({
      include: '.',
      ignoreFile: '.sentrycliignore',
      ignore: ['node_modules', 'webpack.config.js'],
      configFile: 'sentry.properties'
    })
  ],
  ...
但这是哨兵的外观:
enter image description here
enter image description here

最佳答案

您正在产生 native 崩溃,在这里看到的是带符号的C++堆栈跟踪。尝试在JavaScript的某个地方throw new Error('test');,那么您应该看到JS堆栈跟踪。

关于electron - 无法在Sentry上获得可读的 Electron 崩溃报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62652479/

相关文章:

ios - 跟踪 _objc_msgSend 在 dispatch_sync block 内崩溃的策略

android - 如何使用 sentry-cli 设置 Sentry.io 的默认组织

logging - 如何在 Flink 作业执行期间记录未捕获的异常

django - Celery 任务未捕获的异常未发送到 Sentry

iphone - 如果它们导致应用程序崩溃,如何查找内存泄漏?

javascript - Electron,如何在没有nodeIntegration的情况下访问 Node API

windows - Electron 在 Windows 中获取或设置环境变量?

javascript - Electron 按钮配置

sql - 如何在 electron.js 应用程序中保存用户数据?

ios - CrashReporter,缺少必需的体系结构x86_64