Skip to content

Unable to set a breakpoint in a back-piped function #11668

@jbeeko

Description

@jbeeko

In version 16.9.x it was possible to set a breakpoint on the lines of an anonymous function passed to a back pipe. In version 16.10.x this is no longer possible. The breakpoint is always set at the function level.

v16.10.0
image

v16.9.1
image

Repro steps
Start VisualSudio v16.10.x past the code into a .fs file and attempt to set a break point on the line printfn "line1".

let bodyRunner  body =
    printfn "running"
    body ()

let bodyWrapper =
    bodyRunner <| fun _ ->
        printfn "line1"
        printfn "line2"

Expected behavior
Be able to set a break point on the line

Actual behavior
Breakpoint set at function level.

Known workarounds
None

Environment

  • Windows 10 Pro 20H2
  • .NET Runtime .NET 5.0
  • Fails on v16.10.0 & v16.10.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Debugstepping, debug points, stacks and moreArea-LangService-APIImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.Regression

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions