Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 782 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 782 Bytes

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