A test of whether or not I can catch errors from renderer.js with contextisolation turned on.
Associated with issue: getsentry/sentry-electron#366
Setup:
npm install
- Replace the 'DSN' in
main.js
,preload.js
, andrenderer.js
with a working DSN. npm start
Reproduce issue:
- Uncomment
mainUndefined();
inmain.js
and runnpm start
, see that it reports the exception correctly in Sentry - Uncomment
preloadUndefined();
inpreload.js
and runnpm start
, see that it shows the exception in the DevTools console, but doesn't report to Sentry - Uncomment
rendererUndefined();
inrenderer.js
and runnpm start
, see that it shows the exception in the DevTools console, but doesn't report to Sentry
You can also see that Sentry is available in the console because we log it from renderer.