'In Git Bash how to trace a non-git command?
I run a installation script in Git Bash. The script seems to be hanging.
Had this happened in Linux, I would have used strace command to see where the process stuck.
Is there something similar in Git Bash, or in Windows in general?
Git Bash is seen in many places in Windows, eg, running by itself or embedded in VS Code.
Clarification:
- This is NOT about tracing a Git command which has a debug mode.
- This is about a general tracing method for all commands in Git Bash or on Windows 10.
My Git Bash is
$ uname -a
MINGW64_NT-10.0-19044 mypc 3.1.6-340.x86_64 2020-07-09 14:33 UTC x86_64 Msys
Thank you
Solution 1:[1]
This is about a general tracing method for all commands in Git Bash or on Windows 10.
So, since Git TRACE2 alone is not relevant for you, you can try rabbitstack/fibratus
Fibratus is a tool for exploration and tracing of the Windows kernel.
It lets you trap system-wide events such as process life-cycle, file system I/O, registry modifications or network requests among many other observability signals.
In a nutshell, Fibratus allows for gaining deep operational visibility into the Windows kernel but also processes running on top of it.
You still need to configure exactly what this tool will capture though.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | VonC |
