Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong generated method sequence point ranges #15289

Open
auduchinok opened this issue Jun 1, 2023 · 0 comments
Open

Wrong generated method sequence point ranges #15289

auduchinok opened this issue Jun 1, 2023 · 0 comments
Labels
Area-Debug stepping, debug points, stacks and more Bug Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone

Comments

@auduchinok
Copy link
Member

auduchinok commented Jun 1, 2023

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.

@github-actions github-actions bot added this to the Backlog milestone Jun 1, 2023
@0101 0101 added Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code. Area-Debug stepping, debug points, stacks and more and removed Needs-Triage labels Jun 5, 2023
@abonie abonie modified the milestones: Backlog, July-2023 Jul 6, 2023
@abonie abonie self-assigned this Jul 6, 2023
@abonie abonie removed their assignment Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Debug stepping, debug points, stacks and more Bug Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code.
Projects
Status: New
Development

No branches or pull requests

3 participants