Tag Archive: command-line

Debugging AJAX

I can debug my JavaScript using console.log(), which also displays code errors. I can debug my PHP code using print_r() (which I prefer because it’s leaner; many use var_dump()). Since I have PHP’s display_errors directive enabled, and usually I declare error_reporting( E_ALL ^ E_STRICT ) or error_reporting( -1 ), so errors are output within the browser.*

So I can immediately read ... 

Read article

Command-line helpers

Here are two helpful command-line (Linux) tools which are immensely helpful when working on large themes, particularly if you’re modifying someone else’s work. Both require you to first navigate to the directory in which your files reside (see below for a primer).

1. Find all instances of something.

This will respond with all files in which your “something” resides (quotes not needed ... 

Read article