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
Abu Ashraf Masnun
January 12, 2023
Programming
81
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
86
REST API Development
masnun
0
200
Golang For Scalable Systems
masnun
0
160
Email Validation using SMTP
masnun
0
95
Let's Get Going!
masnun
0
140
How to be Successful in Outsourcing
masnun
1
130
Other Decks in Programming
See All in Programming
Foundry Localでエージェント開発
seosoft
0
120
PyO3 で既存 Python 評価器を Rust core 化する ー wasm-bindgen でブラウザにも配るための設計
kdash
1
350
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
460
新人はどこまで自力でやり、どこからAIに頼るべきか/エンジニア育成に向き合う_先輩たちの悩みと知見共有会
toppan_digital_dev
1
550
まだ間に合う!今年の夏こそSchemeのマクロ展開器を完全理解!
omasanori
0
620
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
0
380
Go 1.27からのGODEBUG / Go 1.27 リリースパーティ #go127party
mazrean
0
290
[DroidKaigi 26] How We Moved from Android Studio to Slack
thisaay
0
190
Claude Codeを組織的に動かして月400PRを実現した話
happy_ryo
0
250
[PyCon KR 2026] More Variants, More Diversity for AI Accelerators
achimnol
0
130
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
560
信頼性の目標を誰も求めてない
shubox
0
480
Featured
See All Featured
Docker and Python
trallard
47
4.2k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
340
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
4
560
Odyssey Design
rkendrick25
PRO
2
800
The Curious Case for Waylosing
cassininazir
1
490
Mobile First: as difficult as doing things right
swwweet
225
10k
4 Signs Your Business is Dying
shpigford
187
23k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
720
Everyday Curiosity
cassininazir
0
310
Mind Mapping
helmedeiros
PRO
1
340
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