Debugging to the "on" callback