Implement a callback returning version of Debug::tap