Skip to content

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

Closed

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]

Activity

  1. added
    Area-Debug
    Impact-High
    on Nov 16, 2021
  2. dsyme commented on Nov 16, 2021

    @dsyme
    ContributorAuthor

    Labelling as a regression as this surely worked in the past. Impact high because it's about the simplest code possible.

  3. self-assigned this
    on Nov 19, 2021
  4. removed their assignment
    on Nov 20, 2021
  5. dsyme commented on Nov 20, 2021

    @dsyme
    ContributorAuthor

    Fix of this and numerous other problems related to for-loop stepping is in #12432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-DebugBugImpact-HighReady

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions