Skip to content

[mobile] Android and iOS stack traces do not include file names and line numbers on CoreCLR #124087

Open

Description

@kotlarmilos

Description

On Android and iOS, stack traces do not include file names and line numbers on CoreCLR. This is a tracking issue to improve stack traces verbosity.

Added stack trace pattern matching

private static string FileInfoPattern(string fileLinePattern) =>
            PlatformDetection.IsAndroid ? "" : fileLinePattern;

in StackTraceTests.ToString_Async.

Related work #123824

Activity

  1. added this to the 11.0.0 milestone on Feb 6, 2026
  2. dotnet-policy-service commented on Feb 6, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  3. dotnet-policy-service commented on Feb 6, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
    See info in area-owners.md if you want to be subscribed.

  4. changed the title [-]Android stack traces do not include file names and line numbers on CoreCLR[/-] [+][mobile] Android and iOS stack traces do not include file names and line numbers on CoreCLR[/+] on Apr 21, 2026
  5. dotnet-policy-service commented on Apr 28, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  6. BrzVlad commented on Jul 15, 2026

    @BrzVlad
    Member

    Are we planning to address this for .net11 ? Is this a regression from mono ?

  7. self-assigned this
    on Jul 22, 2026
  8. BrzVlad commented on Aug 13, 2026

    @BrzVlad
    Member

    Tested locally with unhandled exception thrown from sample: https://gist.github.com/BrzVlad/143aae8fcfb32d00643c6561220e9591. Behavior seems identical to mono, with the observation that on android line numbers are not displayed (on either runtime), but seems like there was a recent fix for this. Keeping this open to remember to validate the functionality again once changes from dotnet/android flow.

  9. modified the milestones: 11.0.0, 12.0.0 on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions