Skip to content

Variable in scope is not visible after a bang!-operation in CE #13291

@cmeeren

Description

@cmeeren

Repro.zip

At least in the async CE, after a monadic operation (let!/do!/match! etc.), variables in the debugger suddenly seem to go out of scope:

module Program =

  let f x =
    async {
      do! async.Return ()
      return 1
    }

  [<EntryPoint>]
  let main _argv =
    f 0 |> Async.RunSynchronously |> printfn "%A"
    0

image

image1

(Screenshots from Rider. Originally reported there, but was redirected here.)

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions