dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.88k stars 783 forks source link

Cannot debug FSI with VS 2022, unless adjusting "Enable Just My Code" setting, and not wanting to use other debugger features #17148

Open smoothdeveloper opened 4 months ago

smoothdeveloper commented 4 months ago

This is continuation for #15820.

The ticket was fixed, but it involves a step that the user will not know about, which is to require unchecking "Enable Just My Code":

image

This has side effects on the debugging experience, like stepping through framework or dependencies code that aren't initially loaded in the IDE.

I also notice that none of the expected debug feature related to showing variables, ability to use the immediate window are working:

image

I think those features have been major reason for FSI effectiveness and usefulness in the past, and right now the experience of "right click / Debug In Interactive" (or attaching to FSI process) is not really something I can introduce users to.

It would be great if it can be fixed in the future.

smoothdeveloper commented 4 months ago

Actually, tracked in #14572 but good to have the issue open until there is a solution.