2

Is possible to send an error report from my Chrome Extension to my server?
or at least log somewhere in local to request that info to the user?

EDIT
I mean the errors logged by the Chrome extension (when we are in developer mode). That is: errors not catched by my code

Enrique
  • 4,693
  • 5
  • 51
  • 71
  • Why not? What seems to be a problem? Simply use whatever method any web page does. Like AJAX or sendBeacon. – wOxxOm May 28 '19 at 04:35
  • because the extension stops working when an error occurs, javascript in general have that problem, but in developer mode I can see a log of errors – Enrique May 28 '19 at 16:18
  • @wOxxOm is a generic question, I mean any non catched error in our code – Enrique May 28 '19 at 20:21
  • 1
    Then use a generic listener for 'error' event on `window`. There's no special API for extensions. – wOxxOm May 29 '19 at 05:24
  • Perfect, actually I found is a duplicate of: https://stackoverflow.com/questions/951791/javascript-global-error-handling – Enrique May 29 '19 at 06:12

1 Answers1

2

You can use any error reporting tool as usual. https://sentry.io https://www.bugsnag.com/

Rafael Hovsepyan
  • 781
  • 8
  • 14