Debugging ElePHPants
By:
Adam Culp
Twitter: @adamculp
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
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
Debugging ElePHPants
â—Ź
I Help Build The Web
5
Debugging ElePHPants
â—Ź
Manual Debugging Methods
– Manual
â—Ź
Echo “”
â—Ź
Print “”
â—Ź
eval()
â—Ź
print_r()
â—Ź
var_dump()
â—Ź
die()
â—Ź
console_log()
â—Ź
Toolbars (framework specific of otherwise)
6
Debugging ElePHPants
â—Ź
The Ugly
–
7
Debugging ElePHPants
â—Ź
Automated
–
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
Debugging ElePHPants
â—Ź
IDE Listening
– Activate “listening” in chosen IDE
– Call up the app in a browser
10
Debugging ElePHPants
â—Ź
IDE Debugging Starts
– Debug panel or perspective
11
Debugging ElePHPants
â—Ź
Automated Debugging Methods
– Step-Debugging
â—Ź
Step Over
â—Ź
Step Into (and Force Step Into)
â—Ź
Step Out
12
Debugging ElePHPants
â—Ź
Automated Debugging Methods
– Step-Over
â—Ź
Decline to follow call into a class or function.
â—Ź
Button or F8 key
13
Debugging ElePHPants
â—Ź
Automated Debugging Methods
– Step-Into
â—Ź
Accept to follow call into a class or function.
â—Ź
Button or F7 key
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)
â—Ź
Thank you!
â—Ź
Code at: https://github.com/adamculp
Adam Culp
http://www.rungeekradio.com
http://www.geekyboy.com
Twitter @adamculp
Debugging ElePHPants

Debugging elephpants