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
Intro to Xdebug
Search
claudiomettler
August 27, 2015
Programming
260
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Intro to Xdebug
A lazy persons guide to debugging with Xdebug.
claudiomettler
August 27, 2015
More Decks by claudiomettler
See All by claudiomettler
On-demand image scaling with AWS Lambda and S3
claudiomettler
0
170
Terraform in 5 minutes
claudiomettler
0
750
Getting started with the spark core
claudiomettler
1
310
chef talk at DevOps Singapore
claudiomettler
0
160
Other Decks in Programming
See All in Programming
act1-costs.pdf
sumedhbala
0
130
Even G2とAWSで推しのエージェントを召喚しよう!
har1101
1
130
Mujeres en SEO Summit 2026 - Greatest Disaster Hits en Web Performance
guaca
0
210
AI 輔助遺留系統現代化的經驗分享
jame2408
1
1.1k
エージェンティックRAGにAWSで入門しよう!
har1101
9
1.8k
LLMによるContent Moderationの本番運用の裏側と品質担保への挑戦
suikabar
3
800
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
180
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
360
エンジニア向け会社紹介/Findy Company Profile
findyinc
6
350k
技術的負債解消で開発者の未来を開く- AIの力でコード刷新
kmd2kmd
0
120
Go1.27で導入されるジェネリクスメソッドでできること
mackee
0
200
Javaの型とAI時代に型が大事な理由 / java types and type in AI era
kishida
2
150
Featured
See All Featured
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
150
A better future with KSS
kneath
240
18k
Building AI with AI
inesmontani
PRO
1
1.1k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
210
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Designing for Timeless Needs
cassininazir
1
260
AI: The stuff that nobody shows you
jnunemaker
PRO
8
740
It's Worth the Effort
3n
188
29k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
480
Transcript
A minimalists intro to XDEBUG Claudio Mettler, CtrlM Singapore August
2015 1
xdebug... • ...provides new functions useful for debugging, logging and
testing • ...changes the behaviour of some core PHP functionality • ...does profiling • ...implements a remote debugging protocol 2
A word of caution • do not run on live
servers (for performance and security reasons) • may cause extreme twitchiness when watching people debug without a debugger 3
new functions • code coverage analysis • xdebug_call_class(), xdebug_call_file(), xdebug_call_function(),
xdebug_get_headers() • etc. 4
Modified behaviour • includes a stack trace in error messages
• var_dump can do colors now • function nesting limit of 100! • etc. 5
6
7
profiling • creates CacheGrind files • topic for another talk
8
remote debugging: Installation • pecl install xdebug • apt-get install
php5-xdebug • edit config: xdebug.remote_connect_back=1 xdebug.remote_enable=1 9
remote debugging: IDE SETUP • accept incoming connections • path
mapping 10
remote debugging • set breakpoints • enable listener • start
session in browser 11
live demo 12
check out the competition • phpdbg: part of PHP now
• zend debugger 13
A little bedtime story 14
15
16
17
https://speakerdeck.com/claudiomettler/intro-to-xd 18