How to debug psyntax - higepon/mosh GitHub Wiki
Using environment variable helps a lot.
(when (get-environment-variable "MOSH_DEBUG")
(format (current-error-port) "fun-exp=~s arg-exps=~s ae=~s\n" fun-exp arg-exps (if ae (ae) ae))
)