Skip to content

Stack traces should include parameter names #73051

Closed

Description

@MichalStrehovsky

EnvironmentStackTrace.StackTraceTest test expects parameter names to show up. We don't print them even if we have them.

The original motivation was consistency - we don't necessarily have them.

But since then, IL Linker started removing parameter names for methods that are not demonstratable targets of reflection. This matches what we do. We can just start printing them if we have MethodDefinition metadata (and keep not printing them if we don't have it).

The fix will be in src\coreclr\nativeaot\System.Private.StackTraceMetadata\src\Internal\StackTraceMetadata\MethodNameFormatter.cs.

Activity

  1. added
    help wanted
    on Jul 29, 2022
  2. added this to the 8.0.0 milestone on Jul 29, 2022
  3. jasper-d commented on Aug 4, 2022

    @jasper-d
    Contributor

    I would like to take a stab at it. Feel free to assign me.

  4. jkotas commented on Aug 4, 2022

    @jkotas
    Member

    It is yours!

  5. ghost added
    in-pr
    on Aug 8, 2022
  6. added a commit that references this issue on Aug 18, 2022
    519d1e3
  7. ghost removed
    in-pr
    on Aug 18, 2022
  8. added a commit that references this issue on Aug 18, 2022
    ed70b0a
  9. added a commit that references this issue on Aug 18, 2022
    0ec29b6
  10. ghost locked as resolved and limited conversation to collaborators on Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-NativeAOT-coreclrhelp wanted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions