Zum Inhalt springen
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
Referenzen Technologien Blog Know-how Tools
Über uns Zusammenarbeit Karriere
CS EN DE
Lassen Sie uns sprechen

strace a ltrace — debugging

17. 08. 2025 1 Min. Lesezeit intermediate

Když logy nepomáhají, strace/ltrace jsou záchranná síť.

strace

strace ls /tmp strace -p 1234 strace -e open,read,write ls /tmp strace -c ls /tmp

Příklady

strace -e openat ./app 2>&1 | grep error strace -e write -p $(pgrep myapp) strace -c -p $(pgrep myapp) # kde tráví čas

ltrace

ltrace ./my-program ltrace -e malloc+free ./my-program

  • -f = child procesy
  • -s 1000 = delší stringy
  • V produkci krátkodobě

Ultimátní debugging

strace zachrání hodiny troubleshootingu.

straceltracedebugging
Teilen:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.