fsprojects / FsLexYacc

Lexer and parser generators for F#
http://fsprojects.github.io/FsLexYacc/
MIT License
203 stars 68 forks source link

How to turn on runtime debug output #159

Open artempyanykh opened 2 years ago

artempyanykh commented 2 years ago

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!