Description
Context #1486
If people throw exceptions in callbacks such as the SDK init or the beforeSend callback, the SDK won't be able to capture the errors and will fail silently, which is good.
If debug is enabled, the SDK logs it to the console.
Most of the time people don't know that they can throw in such callbacks and they will think that the SDK is operational, and they will only find out if debug is enabled, for fatal errors, this should be the default behavior so people can learn from the console logs, enable debug for more logging, and fix their issues before its too late.
Description
Context #1486
If people throw exceptions in callbacks such as the SDK init or the
beforeSendcallback, the SDK won't be able to capture the errors and will fail silently, which is good.If
debugis enabled, the SDK logs it to the console.Most of the time people don't know that they can throw in such callbacks and they will think that the SDK is operational, and they will only find out if
debugis enabled, forfatalerrors, this should be the default behavior so people can learn from the console logs, enabledebugfor more logging, and fix their issues before its too late.