Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nudin/hstrace
Wrapper for strace to make output more human readable.
https://github.com/nudin/hstrace
colors strace syntax-highlighting
Last synced: 8 days ago
JSON representation
Wrapper for strace to make output more human readable.
- Host: GitHub
- URL: https://github.com/nudin/hstrace
- Owner: Nudin
- License: mpl-2.0
- Created: 2021-08-14T15:54:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-15T13:35:14.000Z (about 3 years ago)
- Last Synced: 2024-12-19T16:44:19.124Z (9 days ago)
- Topics: colors, strace, syntax-highlighting
- Language: Shell
- Homepage:
- Size: 353 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](strace.png)`hstrace ls`
![hstrace](hstrace.png)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
```