Contact Form 7 get_posted_data(); is not returning posted values [closed]

Let’s try debug $posted_data with sending email

if ( $submission ) {

    $posted_data = $submission->get_posted_data(); 

    ob_start(); 

    echo '<pre>';
    print_r($posted_data);
    echo '</pre>';

    $content = ob_get_clean();

    wp_mail($your_mail, 'Debug', $content);

or you can save $content to file

error code: 523