usually Echo,var_dump,exit,die (). To debug, so the commissioning efficiency is extremely under. Today try XDEBUG+SUBLIMT debugging, found that is also not good use of the Lord.
That's how you debug. Are we PHP, Var_dump. Debug?
Reply content:
usually Echo,var_dump,exit,die (). To debug, so the commissioning efficiency is extremely under. Today try XDEBUG+SUBLIMT debugging, found that is also not good use of the Lord.
That's how you debug. Are we PHP, Var_dump. Debug?
xdebug
Just with a regular IDE
, otherwise use up and gdb
no difference. With a PhpStorm
kind of IDE
, breakpoints, stepping, variable details are very simple operation, than echo
, var_dump
this by guessing debugging is much more convenient.
I'm just using this to debug Beaver
the Https://github.com/funcuter/beaver.
Echo,var_dump,exit,die ()
Not particularly complex applications, small sites what enough,
chromephp Plugin &chromephp.php Class Library
https://github.com/ccampbell/chromephp
Download chromephp.php
Then create a new PHP file, such as 1.php
include 'ChromePhp.php';ChromePhp::log('Hello console!');ChromePhp::log($_SERVER);ChromePhp::warn('something went wrong!');
Chrome App Store install chromephp plugin (to flip)
Then open a new tab, light the chromephp plugin
Enter a URL to see the debug output under the Chrome Dev Tool console tab, my results
Use Phpstrom bar, debugging function is very powerful, such as power-off debugging. My favorite.