Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Power Debugging & Profiling Your PHP Apps
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Abu Ashraf Masnun
January 12, 2023
Programming
75
0
Share
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
71
REST API Development
masnun
0
180
Golang For Scalable Systems
masnun
0
150
Email Validation using SMTP
masnun
0
88
Let's Get Going!
masnun
0
130
How to be Successful in Outsourcing
masnun
1
130
Other Decks in Programming
See All in Programming
20260313 - Grafana & Friends Taipei #1 - Kubernetes v1.36 的開發雜記:那些困在 Alpha 加護病房太久的 Metrics
tico88612
0
250
Rethinking API Platform Filters
vinceamstoutz
0
8.7k
AWS re:Invent 2025の少し振り返り + DevOps AgentとBacklogを連携させてみた
satoshi256kbyte
2
150
条件判定に名前、つけてますか? #phperkaigi #c
77web
2
960
AI時代のシステム設計:ドメインモデルで変更しやすさを守る設計戦略
masuda220
PRO
7
1.2k
Mastering Event Sourcing: Your Parents Holidayed in Yugoslavia
super_marek
0
150
Go_College_最終発表資料__外部公開用_.pdf
xe_pc23
0
120
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
5
2.8k
The free-lunch guide to idea circularity
hollycummins
0
410
Codex CLIのSubagentsによる並列API実装 / Parallel API Implementation with Codex CLI Subagents
takatty
2
840
AI活用のコスパを最大化する方法
ochtum
0
370
Codex CLI でつくる、Issue から merge までの開発フロー
amata1219
0
310
Featured
See All Featured
Marketing to machines
jonoalderson
1
5.1k
Fireside Chat
paigeccino
42
3.9k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.1k
Paper Plane
katiecoart
PRO
1
49k
Building Applications with DynamoDB
mza
96
7k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.8k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Bash Introduction
62gerente
615
210k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
160
Claude Code のすすめ
schroneko
67
220k
The SEO identity crisis: Don't let AI make you average
varn
0
430
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
480
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