Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Intro to Xdebug
Search
claudiomettler
August 27, 2015
Programming
280
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
180
Terraform in 5 minutes
claudiomettler
0
770
Getting started with the spark core
claudiomettler
1
330
chef talk at DevOps Singapore
claudiomettler
0
160
Other Decks in Programming
See All in Programming
ChromeでローカルLLM
ryu1013
0
140
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
300
Domain-Driven Transformation
hschwentner
2
2.3k
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
630
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
980
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
1
160
気持ちぃ〜角丸 Squircle
ryu1013
0
310
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
3
440
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
Jetpack Compose Mechanisms
skydoves
3
820
Featured
See All Featured
Paper Plane
katiecoart
PRO
5
54k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
600
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Technical Leadership for Architectural Decision Making
baasie
3
600
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Designing for humans not robots
tammielis
254
26k
Everyday Curiosity
cassininazir
0
360
Writing Fast Ruby
sferik
630
63k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
330
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
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