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
270
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
760
Getting started with the spark core
claudiomettler
1
320
chef talk at DevOps Singapore
claudiomettler
0
160
Other Decks in Programming
See All in Programming
レビュー履歴をAIに食わせて、 Compose移行を加速するs
shihochan
0
270
[GoCon2026] When Goroutines Are Not Enough: Runtime Locality in High-Throughput Go
takehaya
3
440
XP祭りでしか伝わらないフリップネタ #xpjug
murabayashi
0
110
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
460
Foundry Localでエージェント開発
seosoft
0
150
「AI時代、配布するPythonコードをどう守るか: 難読化の実験と判断軸」 #PyconJP2026
pkshadeck
PRO
2
170
初めての模倣学習とVLA
natsutan
0
500
go-spidermonkeyでAIエージェントのCode Modeを実装する
syumai
3
1.5k
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
470
不幸な GC
chencmd
0
890
型解析で実現する Go の言語内 DSL / Conference に Go! タイムテーブルの歩き方 for Gophers
mazrean
0
130
DynamoDBの基礎を振り返りながらベクトル検索機能を理解する
musan
3
270
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
520
The untapped power of vector embeddings
frankvandijk
2
1.9k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
The Pragmatic Product Professional
lauravandoore
37
7.4k
Chasing Engaging Ingredients in Design
codingconduct
0
300
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
57k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
The Spectacular Lies of Maps
axbom
PRO
1
980
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
470
Building an army of robots
kneath
306
46k
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