Live WordPress Debug Log Viewer for VS Code
Automatically enables debugging, detects WordPress root, and streams debug.log in real-time.
Built with ❤️ by Aditya Dubey
WP Debug Stream is a lightweight and powerful VS Code extension designed specifically for WordPress plugin and theme developers.
It eliminates the repetitive task of:
- Opening
wp-config.php - Finding the
debug.logpath - Manually navigating to
wp-content/debug.log - Refreshing the file after every error
Instead, it provides:
✅ Automatic WordPress root detection
✅ Auto configuration of WP_DEBUG and WP_DEBUG_LOG
✅ Real-time streaming (like tail -f)
✅ Auto-scroll to latest error
✅ Works even when developing from plugin folder only
When developing WordPress plugins or themes, debugging often requires constantly switching between files and refreshing logs.
This extension solves real developer pain by:
- Detecting
wp-config.phpautomatically (even fromwp-content/plugins/your-plugin) - Asking permission before modifying config
- Creating
debug.logif it doesn't exist - Streaming logs without reload flicker
- Saving time during development
No more manual log hunting.
Works whether you open:
- Entire WordPress installation
wp-contentfolderpluginsfolder- Individual plugin folder
If debug logging is not enabled, the extension:
- Prompts for permission
- Safely inserts:
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
Streams wp-content/debug.log live:
- No full file reload
- No flickering
- Smooth append
- Auto-scroll to bottom
- No external dependencies
- Minimal footprint
- Built purely with VS Code API + Node.js
- Open Extensions (
Ctrl + Shift + X) - Search for WP Debug Stream
- Click Install
code --install-extension wp-debug-stream-0.0.1.vsix- Open your WordPress project (or plugin folder)
- Open Command Palette:
Ctrl + Shift + P
- Run:
WP: Open Debug Log
That’s it 🎉
The extension will:
- Detect WordPress root
- Enable debug logging (with permission)
- Open
debug.log - Start live streaming
- WordPress Plugin Developers
- WordPress Theme Developers
- WooCommerce Developers
- PHP Developers working with WordPress
- Gutenberg Block Developers
- React + WordPress developers
The extension:
-
Never modifies files without permission
-
Inserts debug settings before:
/* That's all, stop editing! Happy publishing. */ -
Keeps your configuration clean
Before:
- Trigger error
- Open wp-config.php
- Copy log path
- Navigate to debug.log
- Refresh file
- Repeat
After:
- Trigger error
- Watch log update instantly 🚀
Aditya Dubey GitHub: https://github.com/cyberadityacode
If you find this extension useful, consider giving it a ⭐ on GitHub.
MIT License
Pull requests, feature ideas, and improvements are welcome.
If this extension improves your WordPress development workflow, please share it with other developers.
Happy Coding 🚀