Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

F# in the Immediate Window

Is there any such manner in which I get can either:

  • F# in the immediate window in Visual Studio,
  • Something functionally equivalent to the immediate window with F#

while working with a C# project?

To clarify, the immediate window behaves as expected. What I'm looking for is to be able to use something like fsi with the same context as the immediate window (paused in the debugger, able to work with / call local/private functionality). Third party solutions and hackery are welcome if they work.

like image 706
jdphenix Avatar asked Dec 15 '15 16:12

jdphenix


1 Answers

Have you tried F# Interactive? It's already more powerful than having a simple immediate window. The F# Interactive window is truly a REPL (Read-Eval-Print-Loop) feature of F# in Visual Studio.

See https://msdn.microsoft.com/en-us/library/dd233175.aspx

like image 74
Eriawan Kusumawardhono Avatar answered Sep 28 '22 13:09

Eriawan Kusumawardhono