Tim Bond
Sunshine PHP Conference - February 9, 2019
object(DateTime)#1 (3) { ["date"]=> string(26) "1970-01-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(19) "America/Los_Angeles" }
object(DateTime)#1 (3) { ["date"]=> string(26) "1970-01-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(19) "America/Los_Angeles" }
xdebug.overload_var_dump=1
object(DateTime)[1] public 'date' => string '1970-01-01 00:00:00.000000' (length=26) public 'timezone_type' => int 3 public 'timezone' => string 'America/Los_Angeles' (length=19)
xdebug_var_dump
Notice: Trying to get property 'foo' of non-object in index.php on line 3
xdebug.default_enable=1 #on by default
Windows, no PECL, or if all else fails:
pecl install xdebug
Mac, Linux
C:\xampp\php\php.ini
and add the line zend_extension = C:\xampp\php\ext\php_xdebug-2.6.1-7.2-vc15.dll
xdebug.ini
file therexdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_connect_back=1
#Alternatively:
xdebug.remote_host=localhost
#Optional, default 9000
xdebug.remote_port=9000
Then restart the webserver
Off
On
lets you
code that you previously
xdebug.profiler_enable=1
xdebug.profiler_output_dir=C:\xampp\htdocs\
#XDEBUG_PROFILE GET or POST value
xdebug.profiler_enable_trigger=1
Then restart the webserver
docker0 interface is actually on a VM
sudo ifconfig lo0 alias 10.254.254.254 255.255.255.0
For a permanent solution:
So instead, alias the loopback adapter and send traffic there:
...this has to be run on reboots