EMBED THIS RECORDING:
<div><script id="playterm-MjAxMi0wMi94ZGVidWd0dHlyZWMtMTMzMDMzNzk4NHw4MHgyNA==" type="text/javascript" src="https://playterm.org/js/?hash=MjAxMi0wMi94ZGVidWd0dHlyZWMtMTMzMDMzNzk4NHw4MHgyNA==" class="size:80x24"></script></div>
I recorded this `PHP Xdebug in console` shellsession because I wanted to promote my shellscript
utility. PHP's debugging module 'XDebug' has wonderfull console-features..but not many people know
this.
commands:
$xdebug --manual
that will contain more examples
Coder of Salvation said
btw. the sourcecode (GIST) has been updated in the meanwhile..so the actual version can differ a
bit..but only in a good way. Latest improvements:
- php arguments no supported
- more readible output
- more easy to use
Coder of Salvation said
ps. See the related article for the latest source of the shellscript [=
Theo said
So... How do I install xdebug for the terminal? I cannot find any information on how to install it
to work on the console!
Coder of Salvation said
oh, I discovered the articlelink is outdated, here is the updated link:
http://leon.vankammen.eu/tech/xdebug-bashscript-to-profile-and-debug-php.html
The usage is simple:
- download bashscript
- set executable permissions (chmod 755 xdebug)
then run something like:
php trace yourfile.php
of
php profile yourfile.php