Skip to content

Instantly share code, notes, and snippets.

@amitt001
Last active November 28, 2019 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitt001/14cf653d86060f8a2da4bf692b2ea3bf to your computer and use it in GitHub Desktop.
Save amitt001/14cf653d86060f8a2da4bf692b2ea3bf to your computer and use it in GitHub Desktop.
Process/Thread debugging

Debug Process/Threads

List threads

ps -e -T

A specific pid

ps -Tp <pid>

or

grep Threads /proc/<pid>/status

Trace the Execution of an Executable

strace ls

Trace execution of a specific command

strace -e open ls

Trace a process

sudo strace -p <pid>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment