Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Debugging elephpants

Everybody knows how to install a PHP debugger. But many PHP developers haven't embraced step debugging, and instead do things in a manual way. For many, this is because they simply don't know how to step-debug effectively.

Let's explore how to debug common issues for problem resolution, and spend less time troubleshooting and more time coding. Attendees will see fundamentals to get up and running quickly once a debugger is installed.

  • Be the first to comment

  • Be the first to like this

Debugging elephpants

  1. 1. Debugging ElePHPants By: Adam Culp Twitter: @adamculp
  2. 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. 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. 4 Debugging ElePHPants ● I Help Build The Web
  5. 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. 6 Debugging ElePHPants ● The Ugly –
  7. 7. 7 Debugging ElePHPants ● Automated –
  8. 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. 9 Debugging ElePHPants ● IDE Listening – Activate “listening” in chosen IDE – Call up the app in a browser
  10. 10. 10 Debugging ElePHPants ● IDE Debugging Starts – Debug panel or perspective
  11. 11. 11 Debugging ElePHPants ● Automated Debugging Methods – Step-Debugging ● Step Over ● Step Into (and Force Step Into) ● Step Out
  12. 12. 12 Debugging ElePHPants ● Automated Debugging Methods – Step-Over ● Decline to follow call into a class or function. ● Button or F8 key
  13. 13. 13 Debugging ElePHPants ● Automated Debugging Methods – Step-Into ● Accept to follow call into a class or function. ● Button or F7 key
  14. 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. 15. ● Thank you! ● Code at: https://github.com/adamculp Adam Culp http://www.rungeekradio.com http://www.geekyboy.com Twitter @adamculp Debugging ElePHPants

×