added debug information to msg_send (similar to msg_send_int)