This post covers debugging WordPress using Xdebug, Local, and VS Code. This approach to debugging is far superior to logging variables to the error log or to the screen. Getting things set up correctly can be tricky. That’s where this tutorial helps....
Read More Debugging WordPress Using Xdebug, Local, and VS CodeTag: debugging
Debugging WordPress with Local by Flywheel, (neo)vim, and xdebug
Introduction Local by Flywheel is a popular tool for getting quick and reliable WordPress installations running on your computer. One of its lesser-known features is the inclusion of xdebug support. xdebug is a PHP extension that allows for real-time debugging of PHP...
Read More Debugging WordPress with Local by Flywheel, (neo)vim, and xdebugDebugging WordPress Core: Actions and Filters
Most WordPress developers are familiar with the concept of actions and filters. At the very heart of WordPress, these hooks allow developers to extend the functionality of WordPress in numerous ways. Whether you want to run a process when a post is...
Read More Debugging WordPress Core: Actions and FiltersThe PHPStorm Debugger is Pretty Awesome
In a previous post, I wrote about how awesome PHPStorm is in the context of being a front-end developer. In this post, we are going to look at getting the PHPStorm debugger setup to work with Xdebug and then test it to...
Read More The PHPStorm Debugger is Pretty AwesomeDebugging JavaScript Events: Why Does It Do That When I Click This?
Sometimes things happen on a page that you can’t figure out. You click on a link and nothing happens; you submit a form and a modal pops up. Something is happening in JavaScript, but you can’t figure out where.
Read More Debugging JavaScript Events: Why Does It Do That When I Click This?You Broke It! Better Error Handling So Your Errors Don’t Suck!
There you are. Face illuminated by the blue glow of the monitor. You’ve just finished passing the third of three sets of WP_Query arguments to a function that’s supposed to run a loop with the passed args. Except…arg is what you’re feeling right now because your loop…isn’t...
Read More You Broke It! Better Error Handling So Your Errors Don’t Suck!