Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to use the F# interactive mode while debugging a C# program?

When I'm debugging a C# program in Visual Studio and I've stopped at a breakpoint, is there a way to plug in the F# REPL and evaluate expressions at that scope?

If not, is there any other easy way to evaluate and run arbitrary code while in the middle of a debugging session?

like image 921
Jakub Arnold Avatar asked Aug 26 '14 17:08

Jakub Arnold


People also ask

How do I use the F key?

To enable FN Lock on the All in One Media Keyboard, press the FN key, and the Caps Lock key at the same time. To disable FN Lock, press the FN key, and the Caps Lock key at the same time again.

Why is there no Fn key on my keyboard?

What if my keyboard does not have an Fn key? If your computer did not include a keyboard with the Fn key, it has no alternate functions on those keys. You may consider upgrading your keyboard to a different model, such as a multimedia keyboard.

How do I not press Fn for F keys?

Method 1. Toggle the Fn Lock key All you have to do is look on your keyboard and search for any key with a padlock symbol on it. Once you've located this key, press the Fn key and the Fn Lock key at the same time. Now, you'll be able to use your Fn keys without having to press the Fn key to perform functions.


1 Answers

You can use the Immediate Window for this:

The Immediate window is used to debug and evaluate expressions, execute statements, print variable values, and so forth. It allows you to enter expressions to be evaluated or executed by the development language during debugging. To display the Immediate window, open a project for editing, then choose Windows from the Debug menu and select Immediate, or press CTRL+ALT+I.

like image 57
p.s.w.g Avatar answered Sep 30 '22 02:09

p.s.w.g