This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install php7.2-xdebug | |
sudo find / -name 'xdebug.so' | |
sudo gedit /etc/php/7.2/fpm/php.ini | |
sudo gedit /etc/php/7.2/cli/php.ini | |
sudo gedit /etc/php/7.2/cli/conf.d/20-xdebug.ini | |
[Xdebug] | |
; путь к файлу so, который мы временно сохаринили на шаге раньше | |
zend_extension=/usr/lib/php/20170718/xdebug.so | |
; остальные обязательные параметры | |
xdebug.profiler_enable_trigger=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Dump helper. Functions to dump variables to the screen, in a nicley formatted manner. | |
* @author Joost van Veen | |
* @version 1.0 | |
*/ | |
if (!function_exists('dump')) { | |
function dump ($var, $label = 'Dump', $echo = TRUE) | |
{ | |
// Store dump in variable |