Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
KevinRansom opened this issue Jan 9, 2023 · 4 comments
Open

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

KevinRansom opened this issue Jan 9, 2023 · 4 comments
Labels
Area-VS-FSI VS window and commands for F# Interactive Bug Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code.

Comments

@KevinRansom
Copy link
Contributor

KevinRansom commented Jan 9, 2023

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

@KevinRansom
Copy link
Contributor Author

Harrumpph!!! VS2019 did the same:
image

@0101 0101 added Area-VS-FSI VS window and commands for F# Interactive Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code. and removed Needs-Triage labels Jan 16, 2023
@T-Gro T-Gro moved this from Not Planned to In Progress in F# Compiler and Tooling Feb 6, 2023
@vzarytovskii vzarytovskii modified the milestones: February-2023, March-2023 Mar 3, 2023
@vzarytovskii vzarytovskii modified the milestones: March-2023, April-20203 Apr 3, 2023
@vzarytovskii vzarytovskii removed this from the April-2023 milestone May 4, 2023
@KevinRansom KevinRansom removed their assignment Jun 9, 2023
@majocha
Copy link
Contributor

majocha commented Jan 5, 2024

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

@vzarytovskii
Copy link
Member

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

@rgbav
Copy link

rgbav commented Jun 5, 2024

Any updates on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-VS-FSI VS window and commands for F# Interactive Bug Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code.
Projects
Status: In Progress
Development

No branches or pull requests

5 participants