Tools for Inspecting and Debugging - WordCamp Phoenix #wcphx

1,917 views

Published on

Slides from my talk at WordCamp Phoenix 2013 on tools for inspecting and debugging.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,917
On SlideShare
0
From Embeds
0
Number of Embeds
113
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Tools for Inspecting and Debugging - WordCamp Phoenix #wcphx

  1. Inspecting, Development, and Testing Tools WordCamp Phoenix 2013 http://x-team.com Chris Olbekson @chris_olbeksonFriday, January 18, 13
  2. Who am I? Chris Olbekson • WordPress Developer at X-Team • Core Contributor • Support Forum Moderator http://x-team.com Chris Olbekson @chris_olbeksonFriday, January 18, 13
  3. What am I talking about? Tools and methods you can use for testing and debugging your code followed by interactive examples. http://x-team.com Chris Olbekson @chris_olbeksonFriday, January 18, 13
  4. Built in Tools 1. WP_DEBUG define( WP_DEBUG, true) 2. SCRIPT_DEBUG define(SCRIPT_DEBUG, true) 3. SAVEQUERIES define(SAVEQUERIES, true) 4. The ALL Action Hook add_action( all, create_function( , var_dump( current_filter() ); ) http://x-team.com Chris Olbekson @chris_olbeksonFriday, January 18, 13
  5. Plugins • Debug Bar • Debug Bar Console • Debug Cron • Core Control http://x-team.com Chris Olbekson @chris_olbeksonFriday, January 18, 13
  6. Xdebug • Backtraces function calls and variables • Profiling • Formatting error messages • xdebug_vardump http://x-team.com Chris Olbekson @chris_olbeksonFriday, January 18, 13
  7. PHP_CodeSniffer • Detects violations of a defined coding standard • Essential development tool for teams • Prevents and detects common semantic errors • WordPress specific sniffs and ruleset https://github.com/x-team/WordPress-Coding-Standards http://x-team.com Chris Olbekson @chris_olbeksonFriday, January 18, 13
  8. Using an IDE • Built in function definitions and code completion • Real time debugging while you write code • Real time code sniffing with PHPCS • Built in version control • Remote debugging with Xdebug http://x-team.com Chris Olbekson @chris_olbeksonFriday, January 18, 13
  9. Start of a Conversation • KCacheGrind (Visualization / Profiling) • Unit Testing • JSHint / JSLint • Load Testing What are some of your favorite tools? http://x-team.com Chris Olbekson @chris_olbeksonFriday, January 18, 13

×