docs icon indicating copy to clipboard operation
docs copied to clipboard

Document Automatically Defined Compiler Symbols in F# Compiler Directives

Open shethaadit opened this issue 8 months ago • 3 comments

PR Description:

This PR enhances the F# Compiler Directives documentation by adding a section on automatically defined symbols, such as DEBUG and TRACE. These symbols are implicitly defined by the compiler in specific build configurations and can be used for conditional compilation.

Changes Made:

  • Added a new "Automatically Defined Symbols" section under Conditional Compilation Directives.
  • Documented DEBUG (enabled in Debug builds) and TRACE (enabled in tracing configurations).
  • Included a code example demonstrating conditional compilation using #if DEBUG.

This update helps developers understand which symbols are pre-defined by the F# compiler and how to use them effectively.

Fixes #45478


Internal previews

📄 File 🔗 Preview link
docs/fsharp/language-reference/compiler-directives.md Compiler Directives

shethaadit avatar Apr 02 '25 19:04 shethaadit

Hi @BillWagner, @T-Gro, could you please review?

shethaadit avatar Apr 07 '25 17:04 shethaadit

I'm generally OK with this one. I'd like @T-Gro to take a look before I merge.

BillWagner avatar Apr 09 '25 17:04 BillWagner

@shethaadit Can you update based on @T-Gro 's comments?

BillWagner avatar Jun 10 '25 19:06 BillWagner

@shethaadit Are you planning to update per @T-Gro 's comments?

BillWagner avatar Oct 16 '25 12:10 BillWagner

Closing due to lack of response.

BillWagner avatar Oct 21 '25 13:10 BillWagner