A debugging utility intercepting and recording dynamic library calls to help diagnose issues with shared libraries and dynamic linking, tracing calls made by programs.
ltrace is a program tracing utility intended for debugging issues in running processes on Linux and some other Unix-like systems. It intercepts and records dynamic library calls which are called by processes during execution.
Specifically, it traces calls made by programs to shared libraries such as system calls and other dynamic linking calls. For each intercepted library call, ltrace prints out the name of the call along with its arguments and return value. This allows developers to trace execution of a program and observe its interactions with shared libraries.
Some common use cases of ltrace include:
Overall, ltrace is useful for debugging complex issues caused by dynamic linking and shared libraries in Linux processes. When used properly, it provides insights into the runtime interactions between an executed program and the operating system libraries.
Here are some alternatives to Ltrace:
Suggest an alternative ❐