Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled errors on MonoBehavior not being registered if Debug is disabled #483

Closed
lucas-zimerman opened this issue Dec 17, 2021 · 2 comments
Labels
Bug Something isn't working

Comments

@lucas-zimerman
Copy link
Collaborator

lucas-zimerman commented Dec 17, 2021

If you run the following script with Debug disabled, Sentry will not log any erros. But once enabled, the error will be registered.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Sentry;
using System;
using System.Threading.Tasks;

public class NewBehaviourScript : MonoBehaviour
{
    void Start()
    {
        Start2();
    }

    void Start2()    
    {
        var transaction = SentrySdk.StartTransaction(
        "test-transaction-name",
        "test-transaction-operation"
        );

        SentrySdk.ConfigureScope(scope =>scope.Transaction = transaction);
        //user code...
        throw new Exception(" A bug");
        //transaction.Finish(OK);
    }

    // Update is called once per frame
    void Update()
    {
    }
}

EDIT: Events were sent but only after restarting the app.

@lucas-zimerman lucas-zimerman added the Bug Something isn't working label Dec 17, 2021
@bruno-garcia
Copy link
Member

EDIT: Events were sent but only after restarting the app.

So there's no issue?

@bruno-garcia
Copy link
Member

Resolved by #484

Working on getting a release build ready to get published (version 0.9.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants