Search Unity

How to report unhandled exceptions / errors?

Discussion in 'Unity Cloud Diagnostics' started by ctronc, Mar 28, 2019.

  1. ctronc

    ctronc

    Joined:
    May 18, 2017
    Posts:
    19
    I'm testing Unity Cloud Diagnostics and so far I've had no problems reporting errors using

    Code (CSharp):
    1. throw new Exception("testing");
    And then viewing the error report on the Cloud Diagnostics Dashboard
    However, I would like to report every kind of error and exception to the service, not only "forced" ones using the above code. For example, I deactivated a GameObject for testing and got the following error / exception on red on the editor Console:

    Code (CSharp):
    1. Coroutine couldn't be started because the the game object 'Wheel of Fortune' is inactive!
    But this is not being reported to Cloud Diagnostics.
    Any tips?
    thanks
     
  2. ctronc

    ctronc

    Joined:
    May 18, 2017
    Posts:
    19
    Anyone?
     
  3. johng_unity

    johng_unity

    Unity Technologies

    Joined:
    Nov 5, 2015
    Posts:
    158

    Hi -

    That appears to be a Unity log message. I think it should be captured as a log message leading up to an exception if it happens before an exception (i.e. in the "Logs" section of the problem detail page on the dashboard) but we currently don't capture log messages like this as separate problems.

    Thank you for your feedback about this. We will consider support for this in upcoming features of Cloud Diagnostics.