.TH libssh2_trace 3 "26 Dec 2008" "libssh2 1.0" "libssh2 manual".SH NAMElibssh2_trace - enable debug info from inside libssh2.SH SYNOPSIS#include <libssh2.h>void libssh2_trace(LIBSSH2_SESSION *session, int bitmask);.SH DESCRIPTIONThis is a function present in the library that can be used to get debug infofrom within libssh2 when it is running. Helpful when trying to trace or debugbehaviors. Note that this function has no effect unless libssh2 was built tosupport tracing! It is usually disabled in release builds.\fBbitmask\fP can be set to the logical OR of none, one or more of these:.RS.IP LIBSSH2_TRACE_SOCKETSocket low-level debugging.IP LIBSSH2_TRACE_TRANSTransport layer debugging.IP LIBSSH2_TRACE_KEXKey exchange debugging.IP LIBSSH2_TRACE_AUTHAuthentication debugging.IP LIBSSH2_TRACE_CONNConnection layer debugging.IP LIBSSH2_TRACE_SCPSCP debugging.IP LIBSSH2_TRACE_SFTPSFTP debugging.IP LIBSSH2_TRACE_ERRORError debugging.IP LIBSSH2_TRACE_PUBLICKEYPublic Key debugging.RE
.TH libssh2_trace 3 "26 Dec 2008" "libssh2 1.0" "libssh2 manual"
.SH NAME
libssh2_trace - enable debug info from inside libssh2
.SH SYNOPSIS
#include <libssh2.h>
void libssh2_trace(LIBSSH2_SESSION *session, int bitmask);
.SH DESCRIPTION
This is a function present in the library that can be used to get debug info
from within libssh2 when it is running. Helpful when trying to trace or debug
behaviors. Note that this function has no effect unless libssh2 was built to
support tracing! It is usually disabled in release builds.
\fBbitmask\fP can be set to the logical OR of none, one or more of these:
.RS
.IP LIBSSH2_TRACE_SOCKET
Socket low-level debugging
.IP LIBSSH2_TRACE_TRANS
Transport layer debugging
.IP LIBSSH2_TRACE_KEX
Key exchange debugging
.IP LIBSSH2_TRACE_AUTH
Authentication debugging
.IP LIBSSH2_TRACE_CONN
Connection layer debugging
.IP LIBSSH2_TRACE_SCP
SCP debugging
.IP LIBSSH2_TRACE_SFTP
SFTP debugging
.IP LIBSSH2_TRACE_ERROR
Error debugging
.IP LIBSSH2_TRACE_PUBLICKEY
Public Key debugging
.RE