Debug and trace logging for macro and command parsing, respectively