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

Breakpoints not pausing execution in a HTML <select> <option> onchange event #60602

Open
1 task done
cabbytech opened this issue Feb 25, 2025 · 2 comments
Open
1 task done
Labels
area-blazor Includes: Blazor, Razor Components Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue.

Comments

@cabbytech
Copy link

cabbytech commented Feb 25, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Create a standalone WASM app template in VS2022. In the home page add a select option with an onchange event
put a breakpoint in the event the breakpoint does not stop execution but the the code in the handler is run.
Home

Hello, world!

Welcome to your new app.

<select @onchange="SelectChangeHandler">
ONE
TWO
THREE
FOUR
FIVE

Selected string is: @selectedString

@code{
string? selectedString = string.Empty;

private void SelectChangeHandler(ChangeEventArgs e)
{
    Debugger.Break(); //never hit
    if (e.Value is not null)
    {
        selectedString = e.Value.ToString();
    }

}

}

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Feb 25, 2025
@javiercn
Copy link
Member

javiercn commented Feb 25, 2025

@cabbytech thanks for contacting us.

In order for us to provide you a better and faster answer, it's best if you file the issue through the Report a Problem Visual Studio dialog and link the ticket here. That way it makes it faster to the relevant teams so that they can take a look. Thanks in advance.

@javiercn javiercn added the Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. label Feb 25, 2025
Copy link
Contributor

Hi @cabbytech. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue.
Projects
None yet
Development

No branches or pull requests

2 participants