Skip to content

multi-emit fsi debug -- watch variables don't work #14572

Closed

Description

@KevinRansom

In this session there are four sperate submissions, all sent in one go by using Alt+A select all then Debug in Fsi from the context menu. Note that locals and Autos are empty .. and the watch window claims x, y and z do not exist.

image

This happens because each section of code is separated by ;; and executed in a single submission.

Expected: All submitted code to be compiled and then executed.

Note: This behavior requires this PR: #14537

Activity

  1. added this to the Backlog milestone on Jan 9, 2023
  2. KevinRansom commented on Jan 10, 2023

    @KevinRansom
    ContributorAuthor

    Harrumpph!!! VS2019 did the same:
    image

  3. added
    Area-VS-FSIVS window and commands for F# Interactive
    Impact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.
    and removed on Jan 16, 2023
  4. moved this from Not Planned to In Progress in F# Compiler and Toolingon Feb 6, 2023
  5. removed this from the April-2023 milestone on May 4, 2023
  6. removed their assignment
    on Jun 9, 2023
  7. majocha commented on Jan 5, 2024

    @majocha
    Contributor

    I tried to look what the Roslyn Expression Evaluator is receiving when debugging F#.

    Debugging a net8 console app:

    image
    1. Module instance Unoptimized

    2. Everything works fine.

    Same code, but Debug in Interactive:

    image
    1. Optimized, this is regardless of optimize flag in F# Tools settings.

    2. Next thing that happens is an assertion fail in MetadataDecoder.cs:

    image
  8. vzarytovskii commented on Jan 5, 2024

    @vzarytovskii
    Member

    Hm, wondering why. I'll try not forgetting to look at it next week

  9. rgbav commented on Jun 5, 2024

    @rgbav

    Any updates on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-VS-FSIVS window and commands for F# InteractiveBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions