Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Power Debugging & Profiling Your PHP Apps
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Abu Ashraf Masnun
January 12, 2023
Programming
84
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Power Debugging & Profiling Your PHP Apps
Abu Ashraf Masnun
January 12, 2023
More Decks by Abu Ashraf Masnun
See All by Abu Ashraf Masnun
Background Task Processing in Celery
masnun
1
89
REST API Development
masnun
0
200
Golang For Scalable Systems
masnun
0
170
Email Validation using SMTP
masnun
0
96
Let's Get Going!
masnun
0
140
How to be Successful in Outsourcing
masnun
1
130
Other Decks in Programming
See All in Programming
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
Workers Cache を知る
syumai
0
350
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
130
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
190
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
590
Kubernetes祭り #2 OP/ED
bells17
0
110
dotNET_vulnclicker_intro.pdf
deka_morita
0
130
IBM Bob でAI駆動開発『QC-Playbook』
ichirokano2
0
100
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
640
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
120
SREの越境 / SRE Collaboration
y0hgi
2
300
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
160
Featured
See All Featured
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
450
Unsuck your backbone
ammeep
672
58k
エンジニアに許された特別な時間の終わり
watany
109
250k
Side Projects
sachag
456
43k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
320
Evolving SEO for Evolving Search Engines
ryanjones
0
310
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
490
Practical Orchestrator
shlominoach
192
12k
Designing for humans not robots
tammielis
254
26k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
350
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
520
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
270
Transcript
Power Debugging & Profiling Your PHP Apps Abu
Ashraf Masnun
WHAT’S YOUR STORY? Let’s share experiences!
Error Display • Turn on error display
• Report all errors • E_ALL | E_STRICT • Don’t ignore those “NoKce” messages
Print & Die • Output something and then terminate
the script. • var_dump() • print_r() • Output buffering for cleaner output • debug_backtrace()
Logging • Use a logging library (Monolog, anyone?)
• error_log() • mod_php sets stderr to apache logs: – file_put_contents('php://stderr', print_r($foo, TRUE)) • trigger_error() & set_error_handler() Tail your logs: tail -‐f your_log_file_path
InteresKng Tools • FirePHP, Chrome Logger • Kint,
PHP Debug Bar
THE MOTHER OF ALL DEBUGGER Let’s meet
ConfiguraKon
Netbeans
Netbeans
Netbeans
PROFILING LIKE A PRO
Start Profiling
The Cachegrind Files
Using Webgrind
@MASNUN Feel free to reach out: hap://masnun.me