Add with/log-debug-result macro