';
foreach( $debug_lists as $key => $val ) {
echo '
';
printf( '| %s | ' , esc_html( $key ) );
echo '';
if( is_array( $val ) or is_object( $val ) ) {
printf( '' , esc_textarea( print_r( $val , true ) ) );
} else {
echo esc_html( $val );
}
echo ' | ';
echo '
';
}
echo '';
}
public static function pre_mywp_developer_debug( $include_debug_modules ) {
if( ! empty( $include_debug_modules ) ) {
if( ! in_array( static::$id , $include_debug_modules ) ) {
return false;
}
}
printf( '--- mywp developer debug render: %s ---' , esc_html( static::$id ) );
echo "\n";
static::mywp_developer_debug();
echo "\n";
}
protected static function mywp_developer_debug() {
$debug_lists = static::get_debug_lists();
if( empty( $debug_lists ) ) {
return false;
}
foreach( $debug_lists as $key => $val ) {
echo esc_html( $key ) . ' = ';
if( is_array( $val ) or is_object( $val ) ) {
echo esc_html( print_r( $val , true ) );
} else {
echo esc_html( $val );
}
echo "\n";
}
}
protected static function get_debug_lists() {}
public static function mywp_debug_render_footer() {}
}
endif;