WordPress Tutorial – Local Development with MAMP

The code for your wonderful debugging. It will create a debug.log file inside /wp-content

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 */
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);

/* That's all, stop editing! Happy blogging. */

Enjoy!

Subscribe
Notify of
guest
5 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Steveorevo
8 years ago

Good tips for debugging. All your tips rock! Your Dreamhost fix worked out great for us too. Needed it for QuickDeploy with DesktopServer (http://serverpress.com/products/desktopserver), now designing WordPress sites and deploying to Dreamhost is a snap! Thank you!

trackback

[…] far. The problem was I needed a LAMP-like stack to run WordPress locally, which I’ve covered previously for Macs. This story is about the wampserver orange symbol of […]

knic pfost
knic pfost
7 years ago

well done on every axis. thanks. 🙂

trackback

[…] a quick look at my debug file (generated by using this debug code) I saw […]

John Hartley is a Director of Product Engineering at Beam Dental in Columbus, OH. With 5+ years of leadership experience he has worked in startups, agencies, and began his career as a freelance Front End Developer. Always looking to iterate, this blog is a place for him to share his knowledge as well as hone his craft, challenge assumptions, and build a strong base of leadership and management knowledge. Connect with him on LinkedIn

5
0
Would love your thoughts, please comment.x
()
x