-
Notifications
You must be signed in to change notification settings - Fork 802
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
Debugger info is incorrect for shadowed bindings #3704
Comments
I know this issue.. It should behave the way around.
Am 07.10.2017 09:37 schrieb "Daniel Kirillov" <[email protected]>:
… Repro steps
On a windows 10, fresh VS2017 install
[<EntryPoint>]let main _ =
let x = 42
let x = 7
printfn "%d" x // breaking on this line, watch and tooltip say x=42
0
[image: illustrated]
<https://camo.githubusercontent.com/d870c8509279ed119ad9dfa1ac845c8a15a0ea93/68747470733a2f2f692e696d6775722e636f6d2f596d6f7562664e2e706e67>
Expected behavior
Tooltip will display x value of shadowing binding.
Actual behavior
Tooltip displays x value of shadowed binding.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3704>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AYPM8PG419wfNjRwWPvMKJB8FZ0NjIysks5spyorgaJpZM4PxQ_Q>
.
|
Rider has similar (but not the same on .NET Core projects) issues, I created a bug report https://youtrack.jetbrains.com/issue/RIDER-10227 /cc @auduchinok |
@cartermp I presume we need our own debug engine for this in VS. Unless we restrict the range of the first local. Perhaps we could reverse the order we emit locals or the like, though I don't think there's any perfect solution |
Stumbled on this right now. Note that the types doesn't have to be equal for this problem to arise, and in my case it was an argument to the function that was shadowed with a local. |
I just encountered this in VS Code with Core debugger. Wasted at least an hour thinking that the API I was calling wasn't modifying the value. |
I chased my tail for a bit on this one last night (VS v16.9.0). |
Fixed and in main |
Repro steps
On a windows 10, fresh VS2017 install
Expected behavior
Tooltip will display
x
value of shadowing binding.Actual behavior
Tooltip displays
x
value of shadowed binding.The text was updated successfully, but these errors were encountered: