Xdebug I still stay in Var_dump (), you can make the results sorted more beautiful, you can see the error message in more detail. Oh, it seems to be able to debug.
This article is about how to install debugging.
The system is mint. (Debian/ubuntu);
installation steps.
Generating xdebug.so files
1:
* *
into the official website, under the package.
http://www.xdebug.org/interface is really TM ugly.
http://www.xdebug.org/download.php into the download page.
Xdebug 2.2.4
* *
Release date:2014-02-28 http://www.xdebug.org/files/xdebug-2.2.4.tgz.
You can simply click on the download, you can also wget download, whatever you want.
2:
Because permission problems can occur, you can get super permissions at this SU root, and exit can return the current permission.
Tar zxvf xdebug.*//Extract files.
CD xdebug.*//Enter Xdebug directory.
Phpize is used to expand the PHP extension module, through the phpize can build PHP plug-in module.
3:phpize
4://compilation
./configure--enable-xdebug--with-php-config=/usr/local/php/bin/php-config//Cannot find a path with Find/-name php-config
Make
Make install.
5: Build xdebug.so file after compiling, my path is/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
sudo cp xdebug.so. /.. /extensions//Copy to this path
Install extension
Open the php.ini file, at the bottom
Extension =/usr/local/php/lib/php/extensions/xdebug.so//General tutorial does not play an absolute path, but my machine seems to have a problem with path. If you have a problem, you might as well use an absolute path.
Restart PHP-FPM.
PS aux | Grep-c PHP-FPM
sudo pkill php-fpm
PS aux | Grep-c PHP-FPM
At this time, you can use php-v php-m to view or phpinfo (), or whether the installation was successful.
--------------------------------------the end of the installation article----------------------------------------
Debugging
The grass, debugging was wrong.