Skip to content
/ hstrace Public

Wrapper for strace to make output more human readable.

License

Notifications You must be signed in to change notification settings

Nudin/hstrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hstrace

A tiny wrapper around strace giving colored output and more user friendly defaults.

  • Color output using source-highlight
  • Increase string length to a value matching the terminal width (-s …)
  • Decode fd's to filenames (-y)
  • Enable timestamps (-t)
  • Include subproceses (-f)
  • Enable statistics at command end (-C)
  • Align return codes (-a …)

Example: strace ls strace

hstrace ls hstrace

Dependencies, Usage

Make sure you have source-highlight, tput and strace installed. Call hstrace.sh just as you would call strace.

To install it system wide, I recommend something like:

# git clone https://github.com/Nudin/hstrace /opt/hstrace
# ln -s /opt/hstrace/hstrace.sh /usr/local/bin/hstrace

About

Wrapper for strace to make output more human readable.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages