Chapter 4.  Debugging for Starters

Table of Contents

ltrace
strace
gdb - The GNU DeBugger
Conclusions
Network all around
Setting Up Networks
Debugging Networks
Logging In Into Remote Machines And Having Fun

ltrace

ltrace allows you to trace calls into dynamic libraries. So if you start a program under ltrace's control, you'll mostly see this application's libc library calls. It may, of course, also use other libraries, which calls you'll also see.

Tracing an application with ltrace will help you if you've got trouble that look like problems with the resolver or if you suspect off-by-one string handling errors.