Added debug output in debug_invoke mode.