Writing a Debug Script

1 · Hugo Giraudel · Sept. 9, 2020, 9:41 a.m.
To help debugging situations and collaborating with others when we cannot sit together, I came up with a little Node “doctor” script (in hommage to brew doctor). The goal is to emit a lot of information about the system and working environment (git status, system, environment variables…) so the output can be shared with someone to compare with. As you will see, there is quite a lot of information in there. And while most of it was relatively easy to access and display, some bits were trickier th...