Are .fsx files interactively compiled in debug or release mode?

f#, f#-interactive

Solution

I don't think that `--debug` implies `--define DEBUG`, just that e.g. debugging symbols and such will be there.

Problem

When launching a .fsx with fsi.exe, does the code is compiled interactively in debug or release mode? Because I did fsi.exe --debug test.fsx and it still prints "release". test.fsx: ``` ... #if DEBUG do printf "debug" #else do printf "release" #endif ... ``` Did I miss something? Thanks!

Original source