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
0
160
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
140
Terraform in 5 minutes
claudiomettler
0
690
Getting started with the spark core
claudiomettler
1
270
chef talk at DevOps Singapore
claudiomettler
0
140
Other Decks in Programming
See All in Programming
Random\Randomizer クラスで日常のあれこれを解決しよう! / Random\Randomizer class solves familiar trouble
cocoeyes02
0
250
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
4
840
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
170
SwiftUIで使いやすいToastの作り方 / How to build a Toast system which is easy to use in SwiftUI
lovee
3
150
"config" ってなんだ? / What is "config"?
okashoi
0
240
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
27
8.3k
Goのmultiple errorsについて (2024年4月版)
syumai
4
910
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
130
Code Reviews
bkuhlmann
4
890
Scalable Customer Journey Orchestration (CJO)
lewuathe
0
330
try! Swift Tokyo 2024 参加報告 / try! Swift Tokyo 2024 Report
hironytic
0
210
Goのエラースタックトレースの歴史と今後
sonatard
9
1.5k
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
398
65k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
Into the Great Unknown - MozCon
thekraken
10
990
Optimizing for Happiness
mojombo
370
69k
Documentation Writing (for coders)
carmenintech
60
3.9k
The Mythical Team-Month
searls
216
42k
Making the Leap to Tech Lead
cromwellryan
124
8.5k
The Language of Interfaces
destraynor
151
23k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
322
20k
Building Flexible Design Systems
yeseniaperezcruz
319
37k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
What's in a price? How to price your products and services
michaelherold
237
11k
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