-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Blazor WASM "step over" doesn't work properly for referenced assemblies #49142
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
@lewing FYI |
Tagging subscribers to this area: @CoffeeFlux Issue DetailsDescribe the bugPressing F10 (Step Over) when debugging a WASM project doesn't always step over the current expression. This can be frustrating when debugging because the STEP OVER command acts unpredictably To Reproduce
Expected ResultsThe current executing line of code should progress to the following line with Actual ResultsThe current executing line of code remains on the current line and requires a second press to continue as expected. NotesThis only appears to affect code in referenced assemblies. If the body of Foo Classpublic class Foo
{
public void Bar()
{
var a = 1;
var b = 2;
var x = "Stew";
var y = "00.123";
var c = a + b == 3 || b + a == 2;
var d = TimeSpan.TryParseExact(y, @"ss\.fff", null, out var ts) && x.Contains('S');
Console.WriteLine(d);
} FetchData.razor protected override async Task OnInitializedAsync()
{
new BlazorBugsLib.Foo().Bart();
forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("Bad URI");
}
|
Tagging subscribers to this area: @thaystg Issue DetailsDescribe the bugPressing F10 (Step Over) when debugging a WASM project doesn't always step over the current expression. This can be frustrating when debugging because the STEP OVER command acts unpredictably To Reproduce
Expected ResultsThe current executing line of code should progress to the following line with Actual ResultsThe current executing line of code remains on the current line and requires a second press to continue as expected. NotesThis only appears to affect code in referenced assemblies. If the body of Foo Classpublic class Foo
{
public void Bar()
{
var a = 1;
var b = 2;
var x = "Stew";
var y = "00.123";
var c = a + b == 3 || b + a == 2;
var d = TimeSpan.TryParseExact(y, @"ss\.fff", null, out var ts) && x.Contains('S');
Console.WriteLine(d);
} FetchData.razor protected override async Task OnInitializedAsync()
{
new BlazorBugsLib.Foo().Bart();
forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("Bad URI");
}
|
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescribe the bugPressing F10 (Step Over) when debugging a WASM project doesn't always step over the current expression. This can be frustrating when debugging because the STEP OVER command acts unpredictably To Reproduce
Expected ResultsThe current executing line of code should progress to the following line with Actual ResultsThe current executing line of code remains on the current line and requires a second press to continue as expected. NotesThis only appears to affect code in referenced assemblies. If the body of Foo Classpublic class Foo
{
public void Bar()
{
var a = 1;
var b = 2;
var x = "Stew";
var y = "00.123";
var c = a + b == 3 || b + a == 2;
var d = TimeSpan.TryParseExact(y, @"ss\.fff", null, out var ts) && x.Contains('S');
Console.WriteLine(d);
} FetchData.razor protected override async Task OnInitializedAsync()
{
new BlazorBugsLib.Foo().Bart();
forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("Bad URI");
}
|
…ng debugger-libs+mono or coreclr. Fix error message of evaluate calling methods. Adding test for dotnet#49142
* Creating test to close 49143. * Creating test to close #49141 * Adding test for #49218. * Fix behavior of step to be the same of what we see when debugging using debugger-libs+mono or coreclr. Fix error message of evaluate calling methods. Adding test for #49142 * Improving test to test what @radical asked. * Changing what was suggested by @radical.
Describe the bug
Pressing F10 (Step Over) when debugging a WASM project doesn't always step over the current expression. This can be frustrating when debugging because the STEP OVER command acts unpredictably
To Reproduce
Foo
class to the library with the code belowFetchData.razor
page with the code below.Bar
method of theFoo
class wherevar d
is defined.Expected Results
The current executing line of code should progress to the following line with
Console.WriteLine
Actual Results
The current executing line of code remains on the current line and requires a second press to continue as expected.
Notes
This only appears to affect code in referenced assemblies. If the body of
Bar
is copied toOnInitializedAsync
, STEP OVER behaves as expected. Upon deeper investigation, it appears that the operands of&&
are being treated as separate lines of code when debugged from the referenced library.Foo Class
FetchData.razor
The text was updated successfully, but these errors were encountered: