copy the message before giving it to the debugger