memo and debug cpp