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
  • 761
  • 7
  • 15

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.

Nedo, the author of Fibratus (GitHub account bhnedo) adds in the comments:

Fibratus relies on internal Windows tracing mechanism.
This means no kernel drivers are installed on your machine.

You need a simple filter expression by running fibratus as (String filter operator):

fibratus run ps.name icontains 'git'
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 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
  • Author here. Fibratus relies on internal Windows tracing mechanism. This means no kernel drivers are installed on your machine. You need a simple filter expression by running fibratus as: fibratus run ps.name icontains 'git'. Let me know if this was useful. – Nedo Jul 09 '22 at 09:42
  • @Nedo It is useful, thank you for this. I have included your comment in the answer for more visibility. – VonC Jul 09 '22 at 10:05
  • Appreciate that. Thanks! – Nedo Jul 09 '22 at 10:51