Skip to content

Wrong generated method sequence point ranges #15289

@auduchinok

Description

@auduchinok

There is a significant issue in hwTokenFetch generation, which makes it very hard, or almost impossible, to debug this function.

let rec hwTokenFetch useBlockRule =

According to the pdb information, the last sequence point in this method has range at this when condition:

| (VAL | STATIC | ABSTRACT | MEMBER | OVERRIDE | DEFAULT), ctxtStack when thereIsACtxtMemberBodyOnTheStackAndWeShouldPopStackForUpcomingMember ctxtStack ->

Here's a dump of sequence points read from the pdb, look for 100718728 metadata token.

Stepping any further in this method is impossible because the debugger can't match subsequent sequence points to the method. Neither Visual Studio, nor Rider can debug this method properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Debugstepping, debug points, stacks and moreBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    Projects

    Status

    New

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions