Debugging

The following environment variables can be used for debugging CT-Library applications without the need to modify and relink:

NoteDebug flags that require devlib libraries still require devlib libraries even when using SYBOCS_DEBUG_LOGFILE. For information about which ct_debug flag parameters require devlib libraries, see “ct_debug”.

To use these variables, set them 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