debug macros courtesy of Zed.