A desktop application for monitoring WordPress debug logs in real-time. Built with Electron and React.
- Download
- Screenshots
- Features
- Limitations
- Reporting Bugs/Feature Requests
- Technical Stack
- Prerequisites
- Development Setup
- Building Executables
- Usage
- Development Scripts
- License
You can download the latest version of WP Debug from the GitHub releases page.
This app is not signed, so you might get a warning when you try to open it.
- You can either overriding the security settings by following the instructions here: https://support.apple.com/en-gb/guide/mac-help/mh40617/15.0/mac/15.0
- If you are not able to do that, you can remove the quarantine attribute by running the following command in the terminal:
sudo xattr -d com.apple.quarantine /path/to/WP\ Debug.app
- Launch the application
- Select your WordPress installation directory
- The app will automatically:
- Validate the WordPress installation
- Configure debug settings in wp-config.php
- Create a mu-plugin with the
wp_debug()
helper function - Start monitoring the debug.log file
- New debug log entries will appear in real-time with:
- Timestamp highlighting
- Alternating row colors
- Auto-scroll to latest entries
- System tray features:
- Click the bug icon to show/hide the main window
- Notifications show the first line of new debug entries
- Click notifications to focus the main window
- When quitting:
- Original WordPress debug settings are restored
- The mu-plugin is cleaned up automatically
In your WordPress code, you can use the wp_debug()
function to log variables:
// Basic usage
wp_debug($your_variable);
// Debug and stop execution
wp_debug($your_variable, true);
The function will:
- Log the variable using print_r()
- Include the file path and line number where wp_debug() was called
- Optionally stop execution if the second parameter is set to true
Example output in debug.log:
WP Debug called from /path/to/your/file.php on line 123:
Array
(
[key] => value
...
)
- Real-time monitoring of WordPress debug.log files
- Auto-scrolling to latest entries
- Timestamp highlighting
- Alternating row colors for better readability
- Clear log file contents with one click
- WordPress Integration
- Automatic detection and validation of WordPress installations
- Automatic configuration of WordPress debug settings
- Custom mu-plugin installation for enhanced debugging (
wp_debug()
function) - Automatic backup and restoration of original debug settings
- System Tray Integration
- Minimizes to system tray when closed
- Real-time notifications for new debug entries
- First line preview in notifications
- Custom bug icon for better visibility
- Click notifications to open main window
- Clean, modern UI with real-time updates
- Cross-platform support (macOS, Windows, Linux)
- Does not work with WordPress installations that are not stored on the local computer (i.e. Docker based installations)
Please use the GitHub issues page to report bugs or request features.
- Update the debug helper to add the ability to stop execution of the script
- Added a GitHub link to the about window (props slaFFik)
- Added a feature to quickly open the last 5 WordPress installations you've used (props slaFFik)
- Fixed an error where the app doesn't quit in macOS properly
- Cleaned up some of the build process
- Initial release
- Electron - Desktop application framework
- React - UI framework
- Tailwind CSS - Styling and responsive design
- Chokidar - File system monitoring
- Sharp - Image processing for system tray icons
- Node.js 18.x or higher
- npm 9.x or higher
- A local WordPress installation for testing
- Clone the repository:
git clone https://github.com/yourusername/wp-debug.git
cd wp-debug
- Install dependencies:
npm install
- Start the development server:
npm run dev
This will:
- Start webpack in watch mode for the renderer process
- Launch Electron in development mode
- Enable hot reloading for React components
The project uses Electron Forge for building platform-specific executables.
npm run make
This will create executables in the out/make
directory for:
- macOS (.dmg)
- Windows (.exe)
- Linux (.deb, .rpm)
For macOS:
npm run make -- --platform=darwin
For Windows:
npm run make -- --platform=win32
For Linux:
npm run make -- --platform=linux
npm start
- Start the applicationnpm run dev
- Start the application in development modenpm run build
- Build the renderer processnpm run package
- Package the application without creating installersnpm run make
- Create platform-specific distributables
GPL-2.0-or-later