Debug logging for macro and command parsing