Wordpress调试配置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Wordpress调试配置相关的知识,希望对你有一定的参考价值。

  1. /** Debugging WP */
  2. define('WP_DEBUG', true); //enable the reporting of notices during development - E_ALL
  3. define('WP_DEBUG_DISPLAY', true); //use the globally configured setting for display_errors and not force errors to be displayed
  4. define('WP_DEBUG_LOG', true); //error logging to wp-content/debug.log
  5. define('SCRIPT_DEBUG', true); //loads the development (non-minified) versions of all scripts and CSS and disables compression and concatenation,
  6. define('E_DEPRECATED', false); //E_ALL & ~E_DEPRECATED & ~E_STRICT
  7.  
  8. define('AUTOSAVE_INTERVAL', '300'); // Autosave interval
  9. define('SAVEQUERIES', true); // Analyse queries
  10. define('WP_POST_REVISIONS', false);

以上是关于Wordpress调试配置的主要内容,如果未能解决你的问题,请参考以下文章

Wordpress调试配置

markdown WordPress调试工具(包括twig调试)

WordPress调试

php Wordpress调试

php WordPress调试

php Wordpress调试和Profiler