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
Transcript
18 slides
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
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
350
chef talk at DevOps Singapore
claudiomettler
0
170
Other Decks in Programming
See All in Programming
オーケストレーション記述言語 Katari
yukikurage
0
270
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
380
Distance field of Julia set
kinakomoti321
0
330
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
210
Ruby から Emacs を操作したい
phigasui
0
270
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
210
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
250
疎結合とは何か?ソフトウェア設計における結合バランスについて考える #phpcon_niigata
kajitack
1
280
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
170
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
550
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
220
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
270
Featured
See All Featured
A better future with KSS
kneath
240
18k
The SEO identity crisis: Don't let AI make you average
varn
0
630
Joys of Absence: A Defence of Solitary Play
codingconduct
1
580
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.7k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
2
530
Test your architecture with Archunit
thirion
2
2.5k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
350
Side Projects
sachag
456
43k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
570
The Language of Interfaces
destraynor
162
27k
The SEO Collaboration Effect
kristinabergwall1
1
620
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k