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

Class let values are not available in closures when debugging #3759

Closed
Tracked by #12812
vasily-kirichenko opened this issue Oct 15, 2017 · 3 comments
Closed
Tracked by #12812
Labels
Area-Debug stepping, debug points, stacks and more Feature Improvement Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code. Theme-Simple-F# A cross-community initiative called "Simple F#", keeping people in the sweet spot of the language.
Milestone

Comments

@vasily-kirichenko
Copy link
Contributor

However, the value is visible via strange this.__. qualifier:

image

@cartermp cartermp added 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. labels Oct 15, 2017
@cartermp cartermp added this to the VS 2017 Updates milestone Oct 15, 2017
@vasily-kirichenko
Copy link
Contributor Author

Another example. This time the path is this.@this.:

image

@vasily-kirichenko
Copy link
Contributor Author

Rider debugger works the same way.

@cartermp cartermp modified the milestones: VS 2017 Updates, 16.0 Jun 20, 2018
@cartermp cartermp modified the milestones: 16.0, 16.1 Feb 21, 2019
@cartermp cartermp modified the milestones: 16.1, 16.2 Apr 23, 2019
@cartermp cartermp modified the milestones: 16.2, Backlog Apr 30, 2019
@dsyme
Copy link
Contributor

dsyme commented Aug 16, 2021

This is because the captured values are no longer available via the implicit this pointer.

We really need to both capture more values and have an F# expression evaluator in order to resolve this.

@dsyme dsyme changed the title No value on hover over a class let value in debugger No value on hover over a class let value in debugger with a closure/async Aug 16, 2021
@dsyme dsyme changed the title No value on hover over a class let value in debugger with a closure/async class let values are not available in closures Aug 23, 2021
@dsyme dsyme changed the title class let values are not available in closures Class let values are not available in closures when debugging Aug 23, 2021
@dsyme dsyme added the Theme-Simple-F# A cross-community initiative called "Simple F#", keeping people in the sweet spot of the language. label Sep 16, 2021
@vzarytovskii vzarytovskii moved this to Not Planned in F# Compiler and Tooling Jun 17, 2022
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 Feature Improvement Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code. Theme-Simple-F# A cross-community initiative called "Simple F#", keeping people in the sweet spot of the language.
Projects
Archived in project
Development

No branches or pull requests

4 participants