Running a command with:
gam config debug_level 1 <actual command>
offers significant details on the API calls GAM is making that can be vital in troubleshooting an issue. However it also outputs sensitive refresh/access tokens by default.
Ideally we'd have something like:
gam config debug_level 1 <actual command>
...
<debug output with sensitive tokens redacted>
gam config debug_level 1 no_debug_redaction 1 <actual command>
...
<debug output with sensitive data like access/refresh tokens>