fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

Breakpoint on `()` in if branch in async CE not hit

Open cmeeren opened this issue 2 months ago • 0 comments

Repro steps

Write the following console app, place a breakpoint on (), and debug it (in debug mode):

let c x =
    async {
        if x = "" then
            ()
    }

c "" |> Async.RunSynchronously

Expected behavior

The breakpoint is hit.

Actual behavior

No breakpoint is hit.

Known workarounds

Replace () by e.g. ignore 0.

Related information

  • .NET SDK 9

cmeeren avatar Nov 14 '25 19:11 cmeeren