Ho,
I installed SDK 2.1 in my .Net Core 3.1 project.
I follow up the instructions in the get started page, but I don’t receive any event.
Moreover, in the code snippet to raise an Divide by zero exception, the code does not compile, because the c# compiler fails when building because detect that the 0 constant will raise and Divide by zero, so I think you need to update the documentation.
My code is tas follows:
static void Main(string[] args)
{
using (SentrySdk.Init(“https://…”))
{
try
{
Console.WriteLine("VAmos allá.");
int res = 3;
res -= 3;
Console.WriteLine(1 / res);
}
catch (Exception ex)
{
SentrySdk.CaptureException(ex);
}
}
Console.WriteLine("Hello World!");
}
}
I debug the code and the CaptureExcepcion is executed without errors. HOwever, in the issues page I don’t see any event.
The key is collected from project settings page.
What am I doing wrong?
Thanks in advance!
Best regards,
Juanjo.