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

When you run .fsx with the fsi.exe file, is the code compiled interactively in debug or release mode?

Because I did fsi.exe --debug test.fsx and still prints "release".

test.fsx:

...
    #if DEBUG
        do printf "debug"
    #else
        do printf "release"    
    #endif
...

Did I miss something? Thank!

+3
source share
1 answer

I do not think that --debugimplies --define DEBUG, only this, for example, there will be debugging symbols, etc.

+6
source

Source: https://habr.com/ru/post/1730306/


All Articles