FGLSQLDEBUG

Defines the debug level for tracing SQL instructions.

If FGLSQLDEBUG is set to a value greater than zero, you get a debug trace in the standard error channel for every SQL instruction executed by the program.

Important: Sensitive and personal data may be written to the output. Make sure that the log output is written to files that can only be read by application administrators.

FGLSQLDEBUG can be used on a production site in order to identify a problem related to SQL statements. However, the SQL debug log can produce a lot of data and must be used with care.

Note: The output format of FGLSQLDEBUG is for debug purpose only and may change in future product releases.

Alternatively, you can use the fgl_sqldebug() function to set the SQL debug level by program.