Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Power Debugging & Profiling Your PHP Apps
Search
Abu Ashraf Masnun
January 12, 2023
Programming
0
74
Power Debugging & Profiling Your PHP Apps
Abu Ashraf Masnun
January 12, 2023
Tweet
Share
More Decks by Abu Ashraf Masnun
See All by Abu Ashraf Masnun
Background Task Processing in Celery
masnun
1
70
REST API Development
masnun
0
170
Golang For Scalable Systems
masnun
0
140
Email Validation using SMTP
masnun
0
86
Let's Get Going!
masnun
0
130
How to be Successful in Outsourcing
masnun
1
130
Other Decks in Programming
See All in Programming
dotfiles 式年遷宮 令和最新版
masawada
1
800
AIコーディングエージェント(NotebookLM)
kondai24
0
210
非同期処理の迷宮を抜ける: 初学者がつまづく構造的な原因
pd1xx
1
740
Python札幌 LT資料
t3tra
6
980
AI 駆動開発ライフサイクル(AI-DLC):ソフトウェアエンジニアリングの再構築 / AI-DLC Introduction
kanamasa
10
2.8k
手が足りない!兼業データエンジニアに必要だったアーキテクチャと立ち回り
zinkosuke
0
790
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
210
안드로이드 9년차 개발자, 프론트엔드 주니어로 커리어 리셋하기
maryang
1
130
大規模Cloud Native環境におけるFalcoの運用
owlinux1000
0
170
LLM Çağında Backend Olmak: 10 Milyon Prompt'u Milisaniyede Sorgulamak
selcukusta
0
130
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
510
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
1.5k
Featured
See All Featured
Thoughts on Productivity
jonyablonski
73
5k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
0
26
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
180
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
240
Crafting Experiences
bethany
0
19
Designing Experiences People Love
moore
143
24k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
180
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.1k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
320
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
93
Ruling the World: When Life Gets Gamed
codingconduct
0
92
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