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
0
240
Intro to Xdebug
A lazy persons guide to debugging with Xdebug.
claudiomettler
August 27, 2015
Tweet
Share
More Decks by claudiomettler
See All by claudiomettler
On-demand image scaling with AWS Lambda and S3
claudiomettler
0
160
Terraform in 5 minutes
claudiomettler
0
740
Getting started with the spark core
claudiomettler
1
300
chef talk at DevOps Singapore
claudiomettler
0
150
Other Decks in Programming
See All in Programming
CSC307 Lecture 01
javiergs
PRO
0
690
Basic Architectures
denyspoltorak
0
670
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
130
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
170
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
450
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
430
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
200
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
170
360° Signals in Angular: Signal Forms with SignalStore & Resources @ngLondon 01/2026
manfredsteyer
PRO
0
130
Fluid Templating in TYPO3 14
s2b
0
130
プロダクトオーナーから見たSOC2 _SOC2ゆるミートアップ#2
kekekenta
0
210
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Leo the Paperboy
mayatellez
4
1.4k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
What's in a price? How to price your products and services
michaelherold
247
13k
GraphQLの誤解/rethinking-graphql
sonatard
74
11k
How to Talk to Developers About Accessibility
jct
2
130
The Curse of the Amulet
leimatthew05
1
8.5k
The agentic SEO stack - context over prompts
schlessera
0
640
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
Between Models and Reality
mayunak
1
190
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
94
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