Skip to content

Unable to get exception line numbers to show #3983

@nk-alex

Description

@nk-alex

Package

Sentry.Maui

.NET Flavor

.NET

.NET Version

9.0

OS

Android

SDK Version

14.0

Self-Hosted Sentry Version

No response

Steps to Reproduce

I initialize sentry in my MauiProgram.cs like this:

.UseSentry(options => {
	options.Dsn = "";
	options.Debug = true;
	options.AttachStacktrace = true;
})

Then I try to capture exceptions like this:

try
{
 ...
}
catch (Exception ex)
{
	SentrySdk.CaptureException(ex);
	SentrySdk.CaptureMessage(ex.ToString(), SentryLevel.Info);
}

I thought with CaptureException would have been enough. But since no line numers are showing, I also tried with CaptureMessage. No luck:

Image

Then I thought I could get line numbers information by uploading Debug Information Files. Which I did, but exceptions are still not showing exception line number information.

Image

Is sentry able to give me this information?
Am I missing anything?

I'm unable to find the problem without the line number information.

Expected Result

I would expect to find the line number where the exception is produced. I'm unable to find the problem without that information.

Actual Result

Posted above

Metadata

Metadata

Labels

No labels
No labels

Projects

Status

Done

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions