WordPress: How to Enable or Disable WP_Debug

Опубликовано: 19 Август 2023
на канале: WP-Turbo
185
0

The following code, inserted in your wp-config.php file, will log all errors, notices, and warnings to a file called debug.log in the wp-content directory. It will also hide the errors so they do not interrupt page generation.

Are there more debugging tools?
WP_Debug as designed to work with additional tools, which are enabled the same way as WP_Debug.

Example wp-config.php for Debugging:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );

🔗 https://wordpress.org/documentation/a...

☑ Watched the video!
☐ Liked? 😊
☐ Subscribed?

😍 More video coming soon
---------------------------------------------
Please tell us what you need
these trainings continue. Please Subscribe us ❤️
https://www.youtube.com/@WP-Turbo?sub...


Смотрите видео WordPress: How to Enable or Disable WP_Debug онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь WP-Turbo 19 Август 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 185 раз и оно понравилось 0 людям.