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
Peter Tilsen
July 14, 2015
Technology
0
61
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
170
xdebug configuration
petertilsen
0
75
xdebug Profiler
petertilsen
0
44
Other Decks in Technology
See All in Technology
BPStudyの200回を中心にIT業界を振り返る。そしてこれから
haru860
3
410
Babylon.jsと色々なものを組み合わせる:ブラウザのAPIやガジェットや2D描画ライブラリなど / Babylon.js 勉強会 vol.3
you
PRO
0
160
M5stackで使用できるpHセンサの開発
shinrinakamura
0
200
今日からできる!簡単 .NET 高速化 Tips -2024 edition-
xin9le
7
4k
One engineer company with Ruby on Rails
rstankov
2
440
認知症フレンドリーテックとスタックチャン
naokiuc
0
270
Cloud Service Mesh に触れ合う
phaya72
1
230
LayerXにおけるLLMプロダクト開発の今までとこれから
layerx
PRO
4
740
「スニダン」開発組織の構造に込めた意図 ~組織作りはパッションや政治ではない!~
rinchsan
4
620
IaCジェネレーターとBedrockで詳細設計書を生成してみた
tsukasa_ishimaru
4
890
生成AIの変革の時代に、直近1年で直面した課題とその解決策
ktc_wada
0
690
GrafanaMeetup_AmazonManagedGrafanaのアクセス制御機能とマルチテナント環境下でのアクセス制御について
daitak
0
400
Featured
See All Featured
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.1k
Being A Developer After 40
akosma
66
580k
The Mythical Team-Month
searls
216
42k
A Philosophy of Restraint
colly
197
16k
The Language of Interfaces
destraynor
151
23k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
11
1k
Gamification - CAS2011
davidbonilla
77
4.6k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
Learning to Love Humans: Emotional Interface Design
aarron
267
39k
Testing 201, or: Great Expectations
jmmastey
30
6.4k
Clear Off the Table
cherdarchuk
85
310k
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