FsLexYacc icon indicating copy to clipboard operation
FsLexYacc copied to clipboard

How to turn on runtime debug output

Open artempyanykh opened this issue 3 years ago • 0 comments

I see that FSharp.Text.Parsing has runtime debug output gated by the preprocessor #if __DEBUG.

I tried defining the __DEBUG preprocessor symbol in my project:

    <PropertyGroup>
        <OtherFlags>$(OtherFlags) --define:__DEBUG</OtherFlags>
    </PropertyGroup>

And although I can see that the conditional compilation with __DEBUG works in my project's code, it doesn't seem to affect FSharp.Text.Parsing as the compiler still complains about Flags module being non-existent.

I'm new to FSharp and the dotnet ecosystem, so probably missing something obvious and would appreciate some help!

artempyanykh avatar Feb 11 '22 10:02 artempyanykh