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

"unitVar0" showing in locals #12408

Open
dsyme opened this issue Nov 16, 2021 · 1 comment
Open

"unitVar0" showing in locals #12408

dsyme opened this issue Nov 16, 2021 · 1 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.
Milestone

Comments

@dsyme
Copy link
Contributor

dsyme commented Nov 16, 2021

"unitvar0" is showing when in a closure the takes no arguments like this:

let F() =
    let x = 1
    let y = 2
    (fun () -> x + y)
let f = F()
f()

image

@dsyme dsyme added the Bug label Nov 16, 2021
@dsyme dsyme self-assigned this Nov 19, 2021
@dsyme
Copy link
Contributor Author

dsyme commented Nov 19, 2021

The problem here is that "unitVar0" is the name given to an argument, not a local. There is no way to hide an argument in the debug locals display, short of implementing a debugger engine specifically for F# perhaps #2544

@dsyme dsyme removed their assignment Nov 19, 2021
@vzarytovskii vzarytovskii moved this to Not Planned in F# Compiler and Tooling Jun 17, 2022
@vzarytovskii vzarytovskii added the Area-Debug stepping, debug points, stacks and more label Sep 21, 2022
@vzarytovskii vzarytovskii added this to the Backlog milestone Sep 21, 2022
@T-Gro T-Gro added Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code. and removed Needs-Triage labels Nov 7, 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.
Projects
Status: New
Development

No branches or pull requests

3 participants