Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 477 Bytes

linux debugging.md

File metadata and controls

19 lines (13 loc) · 477 Bytes

Linux debugging commands

  • use strace to follow all files opened by a process
sudo strace -p 1234 -f -s999 -e file
  • using strace to get a good grasp of what an executable is doing
strace -f -e file,execve -s9999 <command>
  • or, to keep the strace output from getting in the way of the program output, use -o /tmp/filename.strace to write strace's output to a file
strace -f -e file,execve -s9999 -o /tmp/filename.strace <command>