Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to inspect variables in a FAKE script?

I have a bug in my FAKE script in obscure code were I interface with legacy build infrastructure. I have a bug there and I wanted to debug my script in Visual Studio. I used --break flag to attach Visual Studio 2013 debugger and I could set up a break point. But I cannot inspect any of variables of a FAKE script.

Is there a way to use Visual Studio 2013 debugger to inspect state of FAKE script? There seems to no problems with regular F# programs.

like image 469
Michal Sznajder Avatar asked Jul 10 '15 07:07

Michal Sznajder


1 Answers

Have you tried using the REPL to invoke your build script a bit at a time?

An example of using VS Code + the ionide plugin to use the FSI interactive Repl

You should be able to highlight and run parts of your script in the REPL.

like image 77
KevM Avatar answered Nov 03 '22 09:11

KevM