add key debugMsg to print log in console