Uh oh!
There was an error while loading. Please reload this page.
[release/7.0][wasm][debugger] Improvements in debugging in async methods - #79542
Conversation
ghost
commented
Dec 12, 2022
Tagging subscribers to this area: @thaystg Issue DetailsBackport of #78651 to release/7.0 /cc @thaystg Customer ImpactWhen a async method has 2 variables with same name in different scopes, the debugger was always getting the value from the last scope, so if it was debugging and paused in a if block, that has an else with the same variable in two blocks, it would should the wrong value for the variable in debugger. TestingManually tested using a Blazor app, also created unit tests. RiskMedium risk, now it's considering the scope of variables in async method, this was completely ignored before.
|
carlossanlop
commented
Jan 4, 2023
@thaystg when this is ready, please add the |
I have already sent the email, and it's already approved :) |
carlossanlop
commented
Jan 5, 2023
Approved by Tactics (7.0.3). |
Backport of #78651 to release/7.0
/cc @thaystg
Customer Impact
When a async method has 2 variables with same name in different scopes, the debugger was always getting the value from the last scope, so if it was debugging and paused in a if block, that has an else with the same variable in two blocks, it would show the wrong value for the variable in debugger.
Fixed this for C# and VB, also fixed names of async variables and methods while debugging VB code.
Issues related:
#77031
#77481
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1697672
Testing
Manually tested using a Blazor app, also created unit tests.
Risk
Medium risk, now it's considering the scope of variables in async method, this was completely ignored before.