Skip to content

Stepping in computation expressions steps out on let!/do! #4835

@cmeeren

Description

@cmeeren

When stepping through computation expressions, the debugger seems to step out on let!/do! expressions. This is easily reproduced with async expressions, but I have also observed it for custom CEs. Setting breakpoints or using Run To Line works correctly, but Step Over or Step Into seems to break out on let!/do!.

Step Over:

step-over

Step Into (note also that it doesn't break out to main like Step Over does above - is this another bug?):

step-into

Run To Line:

run-to-line

Breakpoints:

breakpoints

Repro steps

ReproSolution.zip

Expected behavior

Step Over and Step Into should not step out of the expression after breaking on a let! or do!.

Actual behavior

Step Over and Step Into steps out of the expression after breaking on a let! or do!.

Furthermore, note in the Breakpoints example above that it breaks twice on the let! and do! lines. Is this another bug?

Known workarounds

None that I know of.

Related information

It's been like this for a long time, but this report was made using VS 15.6.4 and Visual F# nightly 15.6.20180504.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions