我已经问过哨兵反应本机git了,但是还没有答复。我有以下迷恋对象:
https://github.com/temharay/sentry
Sentry.nativeCrush()确实得到了报告,我也希望看到上面的暗恋,但在仪表板中看不到它。抓到的东西有区别吗?
像下面这样的JS暗恋确实被抓住了:
nullVariable.toString();
但不能暗恋来自本机Java方面的东西。
如果有帮助,我在模拟器android上。我的设置是:
import * as Sentry from '@sentry/react-native';
Sentry.init({
dsn: 'https://...@sentry.io/...'
// other options
enableAutoSessionTracking: true,
enableNative: true,
enableNativeCrashHandling: true,
enabled: true,
debug: true,
integrations: [
new Sentry.BrowserIntegrations.GlobalHandlers({
onerror: true,
onunhandledrejection: true,
}),
],
});
在应用程序加载时,我看到了日志:
[Wed Sep 30 2020 13:59:40.750] LOG Sentry Logger [Log]: Integration installed: ReactNativeErrorHandlers
[Wed Sep 30 2020 13:59:40.752] LOG Sentry Logger [Log]: Integration installed: Release
[Wed Sep 30 2020 13:59:40.752] LOG Sentry Logger [Log]: Integration installed: InboundFilters
[Wed Sep 30 2020 13:59:40.753] LOG Sentry Logger [Log]: Integration installed: FunctionToString
[Wed Sep 30 2020 13:59:40.753] LOG Sentry Logger [Log]: Integration installed: Breadcrumbs
[Wed Sep 30 2020 13:59:40.754] LOG Sentry Logger [Log]: Integration installed: LinkedErrors
[Wed Sep 30 2020 13:59:40.754] LOG Sentry Logger [Log]: Integration installed: UserAgent
[Wed Sep 30 2020 13:59:40.755] LOG Sentry Logger [Log]: Integration installed: DebugSymbolicator
[Wed Sep 30 2020 13:59:40.755] LOG Sentry Logger [Log]: Integration installed: RewriteFrames
[Wed Sep 30 2020 13:59:40.756] LOG Sentry Logger [Log]: Integration installed: DeviceContext
[Wed Sep 30 2020 13:59:40.756] LOG Sentry Logger [Log]: Global Handler attached: onerror
[Wed Sep 30 2020 13:59:40.757] LOG Sentry Logger [Log]: Global Handler attached: onunhandledrejection
[Wed Sep 30 2020 13:59:40.757] LOG Sentry Logger [Log]: Integration installed: GlobalHandlers
答案 0 :(得分:0)
我的猜测是,仅通过以下浏览器支持即可删除其他集成并设置新列表:
const [laptop, setLaptop] = useState(0);
const handleCheckBoxFour = (checked) => {
if (!checked) {
setLaptop(0);
} else if (checked) {
setLaptop(25);
}
};
<span className="leftspace">Laptop</span>
<input type="checkbox" onChange={handleCheckBoxFour}></input>
只需尝试删除此代码段即可。 应用重新启动后,系统就会发送硬崩溃信息。