Print the call stack and process tree that invoked your CLI command for debugging complex build systems
- Display complete parent process chain from current process to init/system
- Show working directory for each process in the chain
- Print full command line with arguments for each parent process
- Highlight environment variable differences between process levels
- Filter output by process name pattern (e.g., only show make/bash/sh)
- Limit depth of process tree traversal with --depth flag
- Show process IDs and parent process IDs for each level
- Colorized output with tree-style formatting for readability
- Cross-platform support for Linux and macOS
- Minimal startup overhead (< 10ms) for use in tight loops
Use this project when you need to:
- Quickly solve problems related to trace-caller
- Integrate rust functionality into your workflow
- Learn how rust handles common patterns
# Clone the repository
git clone https://github.com/KurtWeston/trace-caller.git
cd trace-caller
# Install dependencies
cargo buildcargo run- rust
clapcoloredsysinfo
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.