Breakpoints in event handlers not triggering

I've noticed that breakpoints in event handlers don't get triggered.

For example,

<Query Kind="Statements">
  <Namespace>LINQPad.Controls</Namespace>
</Query>

var button = new Button() { Text = "Click me!" };
button.Click += button_Click;
button.Dump();

void button_Click(object? sender, EventArgs e)
{
    "Clicked".Dump();
}

If you set a breakpoint on "Clicked".Dump(); and click the button, Clicked will still be dumped, but execution will not stop.

Is this something that can be fixed?

Comments