Skip to content

Debug stepping is not right for a loop with a single "print" #12410

@dsyme

Description

@dsyme

We have a simple mistake in debug stepping for this simple loop, F11 doesn't step through the loop - it seems to be only when the loop body is a single statement/expression.

let h3 inp =
    for x in inp do
       printfn $"hello, x = {x}"

h3 [1..3]

As soon as you do anything else inside the stepping is fine:

let h3 inp =
    for x in inp do
       let y = 1
       printfn $"hello, x = {x}"

h3 [1..3]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Debugstepping, debug points, stacks and moreBugImpact-High(Internal MS Team use only) Describes an issue with extreme impact on existing code.Ready

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions