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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
yield再入門 #phpcon
o0h
PRO
0
800
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
1
620
分散システム、なんですぐ死んでしまうん?耐障害性を高めたいあなたのためのレジリエンスパターン入門
mshibuya
7
7k
PHP に部分適用が来るぞ!……ところで何それ?おいしいの? #phpcon / phpcon-2026
shogogg
0
400
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
390
Google Apps Script で Ruby を動かす
kawahara
0
110
「正の参照」と 「負の導出」で組む ハーネスエンジニアリング
cottpan
1
150
吝嗇家のためのAI活用 / AI development for miser - ChatGPT + Issue Driven Development
tooppoo
0
200
What's New in Android 2026
veronikapj
0
230
壊れたパーサから始める関数型設計と構成的なパーサ #fp_matsuri
raiga0310
2
410
なぜ関数型プログラミングで「型」と「証明」が語られるのか #fp_matsuri
kajitack
3
1k
仕様書を書く前にハーネスを作る - Agent Native開発は「探索を速く、判定を固く」
gotalab555
2
720
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
2.1k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.2k
Evolving SEO for Evolving Search Engines
ryanjones
0
250
The untapped power of vector embeddings
frankvandijk
2
1.8k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
340
Between Models and Reality
mayunak
4
380
Why Our Code Smells
bkeepers
PRO
340
58k
We Are The Robots
honzajavorek
0
290
How to make the Groovebox
asonas
2
2.3k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
310
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
270
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