Currently via PMD_CI_DEBUG=true more verbose logging can be enabled. This is supported by some scripts, some are still very silent.
Github actions also supports something similar, which could be combined: https://docs.github.com/en/actions/managing-workflow-runs/enabling-debug-logging