Debugging software is something akin to an art form but, regardless of the approach you prefer, having good information on what’s happening in your application is key.
ltrace is one tool you may wish to add to your belt – a debugging tool that attaches to a running process, and prints to the terminal or a log file the library calls and/or system calls made by that process. In both its mode of operation and command line interface,
ltrace is similar to
strace only works for system calls, however,
ltrace has no such restriction.
For more information about Red Hat Software Collections or Red Hat Developer Toolset, visit developer.redhat.com/RHEL.
For more information about Red Hat Enterprise Linux and other topics related to this article, visit one of these sites: