How PHP can debug breakpoints like JavaScript, recently using a foreign framework template, not familiar with its syntax. You want to use breakpoint debugging to see where it runs.
Like Zend Debug, can this be achieved? Or is there another way?
Don't go back to exit, die or something.
Reply content:
How PHP can debug breakpoints like JavaScript, recently using a foreign framework template, not familiar with its syntax. You want to use breakpoint debugging to see where it runs.
Like Zend Debug, can this be achieved? Or is there another way?
Don't go back to exit, die or something.
Jiehuaxianfo PHP Debugging Technical Manual release (1.0.0 pdf)
If the download address in the article cannot be accessed, it can be downloaded from the address below (not guaranteed to be valid for a long time).
Link: http://pan.baidu.com/s/1hqD27Ve Password: 5r0y
PDF file Content preview:
I think it is better to configure with Phpstorm + xdebug than Zend + xdebug
This is also an approach:
Http://www.cnblogs.com/gidot/p/4307709.html
In fact, add echo/exit output can also see the execution process, or xdebug
Phpstorm try, you can debug breakpoints, Zend should also be, and Java Eclipse debugging similar
In the course of my study, I did not encounter the need for breakpoint testing. Because PHP runs a small script, if within 2-3 scripts, the use of their own hands var_dump and exit () to achieve the breakpoint test. If there is a better way, please most of you message below, th
Zend studio/zend Eclipse Pdt/netbeans supports breakpoint debugging of PHP with Xdebug and Zenddebugger. Because PHP Web running features, PHP can cooperate with the Print_r/var_dump/exit output you want to know the variable data, and then exit script execution, very convenient, very intuitive.
I am debugging this way, for example, with Phpstorm, if in MVC mode, his breakpoint is not useful
function breakCode($code){ debug_print_backtrace(); echo ""; var_dump(func_get_args()); exit;}
Zend Studio or Sublime text configuration Xdebug to implement PHP code breakpoint debugging
http://www.sitepoint.com/debugging-xdebug-sublime-text-3/
Var_dump ();
Exit ();
Well, since you're asking in earnest ...
Don't Stop me, I'm not crazy!
Last year I wrote a PHP tool for vs hack tools, I just want to say, with VS debugging PHP is awesome!
Well, I used it so well, you guys can use it so well.
Just wrote a phpstorm + xdebug debug PHP Program blog post (although it is reproduced), if the title is also used Phpstorm can see: http://blog.csdn.net/ljfrocky/article/details/46531137
PHP installed Xdebug Extensions
Development tools to configure the debug environment, how to match the environment on the Internet to find information
You want to see the frame structure of the direct mode index.php file
Then break the point in the corresponding line of code
A simple exit () to meet all of your debugging needs, do not lazy, not so intelligent things can accurately analyze which of your frame is what you want, and in the exit line debugging process, the greatest advantage is to understand the unfamiliar framework of internal running logic, at least can have a general understanding, This is an ongoing process of debugging bugs and is a good learning process.
I really think it's enough to use it.
There is a time when Var_dump plus xdebug is enough, unless the loops are nested deep
function pd($array) { echo '
'; print_r($array); echo '
';die;}
And then where to go PD () to where
Direct Xdebug Add a browser plugin on the line
Exit ()