Your SlideShare is downloading. ×
Debugging and Profiling in WordPress: What is My Site Doing?
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Debugging and Profiling in WordPress: What is My Site Doing?

285
views

Published on

An survey of debugging and profiling tools and methodologies for WordPress.

An survey of debugging and profiling tools and methodologies for WordPress.

Published in: Internet

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
285
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Debugging and Profiling in WordPress:
 " " " What Is My Site Doing? Peter Baylies aka @pbaylies on Twitter 
 Semper Fi Web Design
  • 2. Methodology • Troubleshooting - be systematic • Test against a development server • Deactivate conflicting plugins • Test against a default theme • When all else fails...
  • 3. Getting Started • Edit your wp-config.php • define( 'WP_DEBUG', true ); • define( 'WP_DEBUG_DISPLAY', false );
 
 • Other options?
  • 4. http://codex.wordpress.org/Debugging_in_WordPress ! WP_DEBUG_LOG - debug.log file in /wp-content/ SCRIPT_DEBUG - use dev .css and .js for core SAVEQUERIES - track MySQL queries ! Advice and plugin recommendations too!
  • 5. Debugging Tools • Debug Bar - It's like FireBug for WordPress. • Debug Bar Extender - with even more features. • Query Monitor - Another take on both and more. • Collect all three! • ...yes, there are lots more.
  • 6. What is 'Profiling'? • extensive performance metrics • data collection, data analysis • can track function calls, runtimes, control flow
  • 7. P3 Plugin Profiler • Made by GoDaddy • Generates pretty graphs! • It's ok I guess? • Be careful interpreting its advice. • Honestly - this isn't a real profiling tool at all.
  • 8. XHProf • Made by Facebook • It's a PHP extension - some assembly required. • There's a WordPress plugin to help you use it:
 WP XHProf Profiler" • Execution time and memory use of all functions • Shows a call graph of all functions
  • 9. XDebug • Full-featured PHP debugging extension. • Again, some assembly required. • But once you have it working, it's very handy. • Can integrate with many code editors. • In theory can even do breakpoints (!) • http://xdebug.org/docs/remote
  • 10. Live Demo! • This is the fun part. • Which of these would you like to see more of? • Where did I confuse you the most?
  • 11. Questions? • Thank you!
 • Find this presentation on SlideShare
 • Find me on Twitter: @pbaylies