gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 12:40:03 26 4
gpt4 key购买 nike

我正在使用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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com