Xdebug,
where would I be without you, Xdebug
Who am I?
I'm Jimmy Smutek.
I'm a web developer from
Baltimore, MD.
0
Exactly
at my day job
?
What is Xdebug?
- Debugging
- Profiling
- Tracing
A tool.
What's a bug?
The first actual computer bug was actually a bug.
Why Xdebug?
- Real Time
- Interactive
- Clarity
- Insight
Why not just use var_dump()?
$foo = ['a', 'b', 'c'];
var_dump($foo);
When not to use Xdebug?
-
Production
-
Public facing
-
Production!!!
Why not?
-
Performance
-
Security
How do I get it?
-
Trellis
-
VVV
-
Local by Flywheel
-
Install yourself
Pre-installed on:
How do I use it?
-
PhpStorm
-
Sublime Text
-
Atom
-
Emacs
-
Stand alone
Lots of ways:
Many more...
https://xdebug.org/docs/remote
Handy Helpers
-
Xdebug Helper
-
Easiest Xdebug
-
Jetbrains
Browser extensions:
Show me some
Xdebuggin!
Example Zero
Setting up in PhpStorm
- Project Config
- Set a break point
- View some vars
- Evaluate an expression
Example One
Gravity Forms
Example Two
Crazy Arrays
Example Three
????
Thank You!
Jimmy Smutek
Twitter & Github: @smutek | www: smutek.net
Notes & Link to slides: smutek.net/xdebug
Xdebug
By smutek
Xdebug
- 2,374