0

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

oldpride
  • 428
  • 4
  • 10

1 Answers1

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.

VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755
  • Thank you @VonC. This seems to be a very powerful tool, so powerful that I worry about its security risk to my PC. I am looking into it. – oldpride Mar 14 '22 at 12:36