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
190
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
730
Getting started with the spark core
claudiomettler
1
280
chef talk at DevOps Singapore
claudiomettler
0
140
Other Decks in Programming
See All in Programming
Rubyとクリエイティブコーディングの輪の広がり / The Growing Circle of Ruby and Creative Coding
chobishiba
1
270
仮想ファイルシステムを導入して開発環境のストレージ課題を解消する
segadevtech
2
550
What is Parser
yui_knk
9
4.2k
Regular Expressions, REXML, Automata Learning
makenowjust
0
220
Crafting Cross-Platform Adventures: Building a Game Engine with Kotlin Multiplatform
dwursteisen
0
210
Understand the mechanism! Let's do screenshots tests of Compose Previews with various variations / 仕組みから理解する!Composeプレビューを様々なバリエーションでスクリーンショットテストしよう
sumio
3
850
Prolog入門
qnighy
4
1k
Hermes: Better Performance with Bytecode Translation (React Universe 2024)
tmikov2023
0
100
Securify_エンジニア採用資料
3shake
0
110
Scala におけるコンパイラエラーとの付き合い方
chencmd
2
430
[DroidKaigi 2024] Android ViewからJetpack Composeへ 〜Jetpack Compose移行のすゝめ〜 / From Android View to Jetpack Compose: A Guide to Migration
syarihu
1
680
Ruby Parser progress report 2024
yui_knk
2
230
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
18
2.9k
Art, The Web, and Tiny UX
lynnandtonic
294
20k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
8.9k
Atom: Resistance is Futile
akmur
261
25k
The World Runs on Bad Software
bkeepers
PRO
64
11k
Clear Off the Table
cherdarchuk
91
320k
We Have a Design System, Now What?
morganepeng
48
7.1k
The Power of CSS Pseudo Elements
geoffreycrofte
71
5.3k
How GitHub (no longer) Works
holman
310
140k
The Invisible Side of Design
smashingmag
296
50k
Git: the NoSQL Database
bkeepers
PRO
425
64k
Designing Experiences People Love
moore
138
23k
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