More Related Content

Debugging elephpants

  1. Debugging ElePHPants By: Adam Culp Twitter: @adamculp
  2. 2 Debugging ElePHPants ● About me – OSS Contributor – PHP Certified – Zend Certification Advisory Board – PHP-Fig voting member (IBM i Toolkit) – Consultant at Zend Technologies – Organizer SoFloPHP (South Florida) – Organizer SunshinePHP (Miami) – Long distance (ultra) runner – Photography Enthusiast – Judo Black Belt Instructor
  3. 3 Debugging ElePHPants ● About me – OSS Contributor – PHP Certified – Zend Certification Advisory Board – PHP-Fig voting member (IBM i Toolkit) – Consultant at Zend Technologies – Organizer SoFloPHP (South Florida) – Organizer SunshinePHP (Miami) – Long distance (ultra) runner – Photography Enthusiast – Judo Black Belt Instructor I am the PHP Ninja!!!
  4. 4 Debugging ElePHPants ● I Help Build The Web
  5. 5 Debugging ElePHPants ● Manual Debugging Methods – Manual ● Echo “” ● Print “” ● eval() ● print_r() ● var_dump() ● die() ● console_log() ● Toolbars (framework specific of otherwise)
  6. 6 Debugging ElePHPants ● The Ugly –
  7. 7 Debugging ElePHPants ● Automated –
  8. 8 Debugging ElePHPants ● Breakpoints – Inform debugger to stop execution at a given point – Click in the gutter to activate a breakpoint. – A red dot is added, and line highlights in red
  9. 9 Debugging ElePHPants ● IDE Listening – Activate “listening” in chosen IDE – Call up the app in a browser
  10. 10 Debugging ElePHPants ● IDE Debugging Starts – Debug panel or perspective
  11. 11 Debugging ElePHPants ● Automated Debugging Methods – Step-Debugging ● Step Over ● Step Into (and Force Step Into) ● Step Out
  12. 12 Debugging ElePHPants ● Automated Debugging Methods – Step-Over ● Decline to follow call into a class or function. ● Button or F8 key
  13. 13 Debugging ElePHPants ● Automated Debugging Methods – Step-Into ● Accept to follow call into a class or function. ● Button or F7 key
  14. 14 Debugging ElePHPants ● Automated Debugging Methods – Step-Out ● Break out of a class or function, back to execution point. ● Button or ^F8 key (Shift+F8)
  15. ● Thank you! ● Code at: https://github.com/adamculp Adam Culp http://www.rungeekradio.com http://www.geekyboy.com Twitter @adamculp Debugging ElePHPants