Use printf or warn to print out messages to the terminal.
Use trace2_printf to print messages to trace2 logs, which are displayed in
the terminal by running the git exe with GIT_TRACE2_PERF=1.
The lldb utility is a debugger for C/C++ programs compiled using clang
(the default compiler for MacOS). It can be run via the command line or (in
many cases) used with your IDE of choice (the example below uses VSCode).