Linux:Débogage
De WIKI.minetti.org
Tracer l'accès aux fichiers
Pour tracer tous les accès aux fichiers d'un processus:
strace -o ~/trace.log /etc/init.d/dovecot start
Ici on trace tous les accès aux fichiers du démon IMAP.
Pour tracer tous les accès aux fichiers d'une application Java:
strace -F -f -o ~/trace.log $CATALINA_HOME/bin/catalina.sh run
Pour tracer tous les accès aux fichiers d'une application appelant d'autres applications:
strace -f -o ~/trace.log service httpd start