Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>WP Error LogNew to Visual Studio Code? Get it now.

WP Error Log

Jahidur Nadim

|
56 installs
| (0) | Free
WordPress error log printer.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

wp-error-log README

Quickly log the error to the WordPress debug.log file with this snippet.

Features

Type elog and hit the tab in any PHP file. This will expand to error_log(print_r( $, true )); And you will see the logged content in the /wp-content/debug.log file.

Requirements

Make sure the following constants are set to the WordPress root wp-config.php file.

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );

Release Notes

0.0.1

Initial release.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft