
WordPress Debugging Simplified with wpdebug.sh
Introduction
Welcome to Fervid Digital’s inaugural blog post! Here at Fervid Digital, we empathize with the frustrations often encountered when preparing a WordPress installation for debugging. That’s precisely why we’ve developed wpdebug.sh – a convenient shell script designed to automate common debugging tasks and streamline the entire process.
Simplify Your WordPress Debugging Workflow:
Debugging WordPress websites can often be a cumbersome task, requiring manual edits to configuration files and navigating through various settings. However, with wpdebug.sh, you can say goodbye to the hassle of manually editing configuration files and navigating through complex settings. Let’s walk through the steps to set up and use wpdebug.sh to enhance your WordPress debugging experience.
How to Use wpdebug.sh
Using wpdebug.sh is straightforward and can be set up in just a few simple steps:
1. Copy the Script to the Root of Your WordPress Installation:
Begin by copying the wpdebug.sh script to the root directory of your WordPress installation using scp.
scp wpdebug.sh host:/directory/to/wp/2. Make the Script Executable:
After uploading the script, grant execute permissions to the script using the chmod +x command. This ensures that the script can be executed as a command in the terminal.
chmod +x wpdebug.shThis command allows the script to be executed as a command in the terminal.
3. Install the Alias (optional):
Installing the alias for wpdebug.sh adds a convenient shortcut for accessing the script from anywhere within the terminal. By running the ./wpdebug.sh install command, the script automatically adds an alias to your .bashrc file.
./wpdebug.sh installThis command ensures that you can access wpdebug.sh by simply typing wpdebug in the terminal, saving you time and effort.
4. Reload Your Bash Configuration (optional):
Reload your bash configuration using the source ~/.bashrc command to ensure that the newly added alias is recognized and available for immediate use.
source ~/.bashrcWith the bash configuration reloaded, you’re now ready to start using wpdebug to simplify your WordPress debugging process.
wpdebug Commands
Once installed, you can execute the script with various commands to perform specific debugging actions:
| Command | Description |
|---|---|
| ./wpdebug.sh install | Adds an alias for wpdebug.sh, wpdebug, to your .bashrc file for easy access. |
| wpdebug uninstall | Removes the alias added by the install command. |
| wpdebug enable | Enables WordPress debugging and logging in wp-config.php. |
| wpdebug disable | Disables WordPress debugging and logging in wp-config.php. |
| wpdebug tail | Tails the debug log located at wp-content/debug.log, allowing live monitoring. |
| wpdebug delete | Deletes the debug log file located at wp-content/debug.log. |
Requirements and Considerations
Before using wpdebug.sh, make sure you have SSH access to your server and the WP-CLI installed and configured on your system. Additionally, always remember to back up your wp-config.php file before making any modifications with wpdebug.sh to avoid any unintended changes.
Get Started with wpdebug.sh
Ready to streamline your WordPress debugging process? Download wpdebug.sh now and experience the power of automation firsthand. If you think we could make this script better, don’t hesitate to share your thoughts or suggestions with us. And if you need assistance debugging your site, check out our Website Care plans or request a One-Time Fix.
Thank you for joining us on this journey! Stay tuned for more insightful blog posts from Fervid Digital, where we’ll continue to share valuable tips, tricks, and resources for WordPress developers and enthusiasts alike.
Download wpdebug.sh: GitHub Gist