There are various ways to trace execution of programs written in various languages:

Tracing type

Tool

Command-line

ELF (syscalls)

strace

strace program args

ELF (functions)

ltrace

ltrace program args

ELF (functions)

latrace

latrace program args

getenv(3) calls

getenvy

export LD_PRELOAD="libgetenvy.so" ; GETENVY=1 program args

Shell

all shells

sh -x /usr/bin/program args

Perl

libdevel-trace-perl

perl -d:Trace /usr/bin/program args

Ruby

ruby-rbtrace

rbtrace --exec /usr/bin/program args

Python

Python trace module

python3 -m trace --trace /usr/bin/program args


CategoryDebugging