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
xdebug
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Peter Tilsen
July 14, 2015
Technology
0
74
xdebug
Peter Tilsen
July 14, 2015
Tweet
Share
More Decks by Peter Tilsen
See All by Peter Tilsen
Why did we choose to use GoLang
petertilsen
0
180
xdebug configuration
petertilsen
0
82
xdebug Profiler
petertilsen
0
49
Other Decks in Technology
See All in Technology
Digitization部 紹介資料
sansan33
PRO
1
6.8k
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3k
Kiro IDEのドキュメントを全部読んだので地味だけどちょっと嬉しい機能を紹介する
khmoryz
0
160
Mosaic AI Gatewayでコーディングエージェントを配るための運用Tips / JEDAI 2026 新春 Meetup! AIコーディング特集
genda
0
150
What happened to RubyGems and what can we learn?
mikemcquaid
0
250
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
2人で作ったAIダッシュボードが、開発組織の次の一手を照らした話― Cursor × SpecKit × 可視化の実践 ― Qiita AI Summit
noalisaai
1
370
ClickHouseはどのように大規模データを活用したAIエージェントを全社展開しているのか
mikimatsumoto
0
190
Embedded SREの終わりを設計する 「なんとなく」から計画的な自立支援へ
sansantech
PRO
3
2.1k
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
0
760
SREが向き合う大規模リアーキテクチャ 〜信頼性とアジリティの両立〜
zepprix
0
400
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
140
Featured
See All Featured
First, design no harm
axbom
PRO
2
1.1k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
430
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
Believing is Seeing
oripsolob
1
53
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Testing 201, or: Great Expectations
jmmastey
46
8k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
WCS-LA-2024
lcolladotor
0
440
KATA
mclloyd
PRO
34
15k
AI: The stuff that nobody shows you
jnunemaker
PRO
2
240
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
Transcript
XDebug
XDebug • What is this and what is it good
for? • Installation • Configuration • Breakpoints • Watches • Demo
XDebug What is this and what is it good for?
• PHP extension providing debugging and profiling capabilities • Display features • Traces • Coverage analysis • Remote debugging • Profiling (xdebug profiler)
XDebug What is this and what is it good for?
• Display features • Replaces var_dump(), provides more readable output (http://xdebug.org/docs/display)
XDebug What is this and what is it good for?
• Traces • Stack traces • Function traces
XDebug What is this and what is it good for?
• Coverage analysis • Used by phpunit (clover report etc.)
XDebug What is this and what is it good for?
• Remote debugging • Interface for remote debugging (phpstorm)
XDebug What is this and what is it good for?
• Profiler
XDebug Installation • PEAR/PECL, source (http://xdebug.org/docs/install)
XDebug Configuration • Minimum requirements • Display configuration • Remote
configuration
XDebug Configuration Phpstorm • Remote configuration • Server configuration remote
port in php.ini
XDebug Configuration Phpstorm • Run configuration Ide key
XDebug Configuration xdebug enabler https://chrome.google.com/webstore/ detail/xdebug-helper
XDebug Cli mode • Debugging cli script calls • export
XDEBUG_CONFIG=“idekey=PHPSTORM" • php -d memory_limit=500M ./bin/phpunit -c app / vagrant/src/Uniplaces/AccommodationBundle/ Tests/Functional
XDebug Breakpoints • Intentional stopping or pausing place in a
program • setting • disabling • suspending with condition • (logging, removing once hit, etc.)
XDebug Watches • Tool for further inspection of values of
selected variables and expressions • add, edit and remove (see demo)
XDebug • Demo