These environment variables are introduced in ESD #17 to help you debug your CT-Library applications without the need to modify and relink:
SYBOCS_DEBUG_FLAGS – enables specific diagnostic subsystems. You can enable multiple debug options by specifying a comma-delimited list of flags in the variable.
SYBOCS_DEBUG_LOGFILE – specifies the log file where the diagnostics are recorded. If you do not set SYBOCS_DEBUG_LOGFILE, messages are written to stdout.
Debug flags that require devlib libraries still require devlib libraries even when using SYBOCS_DEBUG_FLAGS. For information about which ct_debug flag parameters require devlib libraries, see “ct_debug” in the “Routines” chapter in the Open Client Client-Library/C Reference Manual.
To use, set the variables before calling your CT-Library application. For example:
On UNIX:
% setenv SYBOCS_DEBUG_FLAGS CS_DBG_SSL,CS_DBG_PROTOCOL % setenv SYBOCS_DEBUG_LOGFILE libsybfssl.log % ./isql –U sa –P –S my_ssl_server % more libsybfssl.log
On Windows:
C:\> set SYBOCS_DEBUG_FLAGS=CS_DBG_SSL C:\> set SYBOCS_DEBUG_LOGFILE=.\libsybfssl.log C:\> isql –Usa –P –S my_ssl_server C:\> type libsybfssl.log