Thank you, everything is clear now!
Adding it to the option should work too:
add_filter( ‘evr_divi_popup-js_data’, ‘my_divi_popup_options’ );
function my_divi_popup_options( $config ) {
…
…
// Disable debug
$config[‘debug’] = false;
return $config;
}