Skip to content

Step Over sometimes executes a lot more than one statement #109885

@TonyValenti

Description

@TonyValenti

Description

When I'm debugging code, I use F10 (Step Over) to walk through one line of code at a time.
In .NET 8x, this worked fine.
In .NET 9x, sometimes it seems like it runs a TON more code until it hits a breakpoint.

I suspect I might be running into some variant of #109785 and I specifically notice this happening in ForEach code as described in #109812 .

I see this is slated to be fixed in .NET 10.0, however, this is a major annoyance and I am very hopeful this will be approved for servicing.

Reproduction Steps

Not sure.

Expected behavior

"Step Over" works like .NET 8.0

Actual behavior

"Step Over" sometimes works like "Continue"

Regression?

Yes.

Known Workarounds

Use .NET 8.0

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

area-Diagnostics-coreclrin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions