Raygun Crash Reporting features clarifications
Prashanth
Posted on
Mar 10 2016
Hi,
We are currently developing "Enterprise Mobile App" using Java script responsive UI development framework & Phonegap/Corodova.
On this regard, I would like to understand more details on Raygun Crash Reporting features.
- What kinds of crashing errors will be captured & sent by Raygun?
- Does Raygun automatically captures the reason for app crash whenever app crashes because of hardware/software issues?
- Or does Raygun only notifies the errors which we send from mobile app code to Raygun using Raygun API? Which means, we need to have Ragun.send code in all catch & finally blocks?
- Should we add the Raygun code in all pages where we need to catch the errors?
Regards, Prashanth
Deleted User
Posted on
Dec 27 2016
Hello Prashanth!
Thank you for reaching out to us! To answer your questions:
Raygun4js has two main functions, the first to transmit exceptions manually caught in try-catch blocks, and the second which is a handler to catch and send all errors caught in window.onerror. So this means you can manually pass through whatever data you want in the try-catch blocks and then the errors captured automatically from window.onerror may only contain the error message, line number, and column number. In order to get stack traces, you need to wrap your code in a try/catch block.
Raygun will capture anything you manually specify in a try-catch block or automatically if the error is caught in window.onerror.
We handle errors manually sent through the API as well as automatically catch errors caught by window.onerror.
Yes, you'll need to add Raygun to all pages where you want tracking on exceptions.
Please let us know if you have any other questions!
Thank you,
Jesse, Developer Evangelist at Raygun