This is a great article on getting a MEMP stack running on OS X 10.10 Yosemite:
Personally, I skipped everything with regards to phpMyAdmin, since I use Sequel Pro for interacting with MySQL databases. You may notice that there’s a known bug with the current stable version of Sequel Pro (1.0.2) on Yosemite, but if you don’t need user management, you’ll be fine.
Sometimes you get back JSON data in a browser window, and it would be nice to just check it out without having to fire up anything else, or muck with copy/pasting. A quick Google search implies you need an extension for Chrome, but there is a simple (if somewhat buried) way to browse JSON objects with the Inspector: in the Network tab, select your source and then the Preview tab (beside the Headers tab). Enjoy!
I use branches a lot with Git, as I find them easy to understand and a great tool for organizing. If you want to easily switch back and forth between versions of your code base for testing, you can just create a branch with a particular commit:
git checkout -b before-refactor a8b912c0ebdce6173f6e7af5d93fafc0f50175c0
This also lets you easily compare versions by
diffing the branches:
git diff master before-refactor
When developing themes, it can be useful to see what theme mods (setting values from
get_theme_mod()) are set for your themes at the database level. However, this information is serialized, making it difficult to access, read, and modify while testing.
I’ve been relying on two tools for this sort of work lately: Sequel Pro and the Online PHP Unserializer.
Sequel Pro is a Mac-only, open-source tool for working with MySQL databases; it’s much faster, robust, and intuitive than PHPMyAdmin, and easier to work with than MySQL Workbench. The Online PHP Unserializer does its one thing, and does it well.
Copying serialized data from the database back and forth from the Unserializer makes it easy for me to troubleshoot mod settings, revert to previous values, or zero out certain values without having to delete the whole row from the database. This can be invaluable when testing code for the Customizer, or anything involving multiple themes at the same time.
If you have other troubleshooting tips, or any other tools to suggest than those above, let me know!