libssh2_trace(3)
β¨ libssh2_trace β bestie edition β¨
okay so this is a page from the libssh2 manual, and today we're doing libssh2_trace(3). yes queen, we're getting into the debug guts π
π NAME π
libssh2_trace β enable debug info from inside libssh2
πΈ SYNOPSIS πΈ
#include <libssh2.h>
void
libssh2_trace(LIBSSH2_SESSION *session, int bitmask);
π¦ DESCRIPTION π¦
okay so listen. this is a function that literally lives inside the library, and its whole job is to hand you debug info from within libssh2 while it's running. it's giving "backstage pass to the vibes". super helpful when you're trying to trace stuff or debug behaviors, like when something's acting up and you're just sitting there like π why.
π¨ huge caveat, do not skip this one bestie: this function has no effect unless libssh2 was built to support tracing! it is usually disabled in release builds. so if you're calling it and getting absolutely nothing, that's not you, that's the build. no cap.
so bitmask can be set to the logical OR of none, one or more of these:
LIBSSH2_TRACE_SOCKETβ socket low-level debugging π§¦LIBSSH2_TRACE_TRANSβ transport layer debugging πLIBSSH2_TRACE_KEXβ key exchange debugging πLIBSSH2_TRACE_AUTHβ authentication debugging πͺͺLIBSSH2_TRACE_CONNβ connection layer debugging πLIBSSH2_TRACE_SCPβ SCP debugging πLIBSSH2_TRACE_SFTPβ SFTP debugging πLIBSSH2_TRACE_ERRORβ error debugging πLIBSSH2_TRACE_PUBLICKEYβ Public Key debugging ποΈ
and that's the whole page, bestie. every flag, every word, nothing skipped, periodt. π
this was libssh2 1.0, dated 26 Dec 2008, and the page you just read is libssh2_trace(3). slay, go trace something π«Άβ¨
π¦ where this page comes from
- alpine 3.22: libssh2-doc 1.11.1-r3 Β· BSD-3-Clause
- alpine 3.23: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- alpine 3.24: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- arch rolling: libssh2 1.11.1-7 Β· BSD-3-Clause
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u1 Β· BSD3
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u2 Β· BSD3
- epel 10: libssh2-docs 1.11.1-9.el10_3 Β· BSD-3-Clause
- epel 9: libssh2-docs 1.11.1-9.el9 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-4.fc43 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-9.fc43 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-5.fc44 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-9.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libssh2-1-dev 1.11.1-1build1
- ubuntu questing: libssh2-1-dev 1.11.1-1ubuntu0.25.10.2
- ubuntu resolute: libssh2-1-dev 1.11.1-1build2 Β· BSD3
- ubuntu resolute: libssh2-1-dev 1.11.1-1ubuntu0.26.04.4 Β· BSD3
- ubuntu stonking: libssh2-1-dev 1.11.1-6 Β· BSD3
- π the page's license: BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms