'; foreach( $debug_lists as $key => $val ) { echo ''; printf( '%s' , $key ); echo ''; if( is_array( $val ) or is_object( $val ) ) { printf( '' , print_r( $val , true ) ); } else { echo $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 ---' , 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 $key . ' = '; if( is_array( $val ) or is_object( $val ) ) { print_r( $val ); } else { echo $val; } echo "\n"; } } protected static function get_debug_lists() {} public static function mywp_debug_render_footer() {} } endif;