Skip to content

Breakpoint on () in if branch in async CE not hit #19094

@cmeeren

Description

@cmeeren

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions