These two days have been studying PHP code debugging, the original development has been using the Var_dump, trouble!Recently found to be able to use Xdebug+eclipse remote single-step debugging PHP, but Baidu after the implementation of this
This article brings you to the content of how to debug PHP code? PHP code Debugging Method Summary, there is a certain reference value, the need for friends can refer to, I hope to help you.
No programmer can one go and flawlessly complete a
NetBeans cannot Debug PHP code and cannot run it at all. It's a waste of time, download time, installation time, and trial time. I hate you !!
Reply to discussion (solution)
If NetBeans is a good IDE debugging, the output variables ECHO,
Debug PHP extensions using gdb
From: http://www.codefrom.com/paper/%E4%BD%BF%E7%94%A8gdb%E8%B0%83%E8%AF%95p...
Php extensions are developed using c/c ++ and can be easily debugged using gdb. The procedure is as follows:Add the ** --
How to Debug php programs? After a request is sent, the browser cannot accept the returned data and is in the padding state. after a breakpoint is added to the code, the request is still normal only after Apache and MySQL are restarted. However, the
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'
How to debug PHP "turn"
A good code debugger allows you to do more with the problem, because the code debugger can set breakpoints, line-by-row code tracking, you can see the value of variables and so on. Every development language has a good code
Sometimes, because of the increase in system code, causing many files to be interrelated, or some third interface (etc.), you have to debug online.On-line environment, we are all set "Ini_set (' display_errors ', false)" in order to prevent errors
Is the debugger plug-in of zendstudio used to debug php code? I cannot download the link on the official website. thank you. RT.
Reply to discussion (solution)
Isn't it difficult to install plug-ins? You can directly echo/print_r ()/var_dump (
XDEBUG + MyEclipse Single-step tracking debug PHP code
1. Xdebug
Xdebug is an open source PHP program debugger (i.e. a debug tool) that is quite powerful and can be used to track, debug and analyze the health of PHP programs. Xdebug now the latest
Eclipse for PHP developers cannot debug PHP controller code
My version of Eclipse is as follows:
Eclipse for PHP Developers
Version:helios Service Release 2
Build id:20110301-1815
。
Ability to debug code in the view directory, but cannot debug
How to debug PHP, how to check the wrong??
PHP as long as there is a little error, the entire page is not displayed, if require_once, the referenced file is wrong, also shows 500 error
I think, a experienced software engineer, also can not be in the
XDEBUG + MyEclipse Single-step tracking debug PHP code
1. Xdebug
Xdebug is an open source PHP program debugger (i.e. a debug tool) that is quite powerful and can be used to track, debug and analyze the health of PHP programs. Xdebug now the latest
NetBeans cannot debug PHP code and cannot run at all.
Waste my time, download time, installation time, trial time, I hate you!!
------to solve the idea----------------------
NetBeans is good. An IDE debug word output variable echo,print_r
Zend Studio How to debug PHP-associated Ajax
PHP often uses Ajax, how to debug
------Solution--------------------
The firebug inside Firefox can be seen.
------Solution--------------------
Step by step measurement, can return the expected data,
Parse the difference between die (), exit (), and return in PHPDie ()Stop program run, output contentExitis to stop the program from running, not output contentreturnis the return value dieIt's just a mistake to stop.Exitis stopped directly, and no
Definition of debugging: Find and reduce the number of defects in the program by a certain method, so that it can work properly.Here are some lessons about how to debug PHP programs.
The debugging function of PHP with self
1, with the error
I have just come into contact with PHP-Eclipse. Today I have just finished the debug PHP method and shared it with you.
Step 1: Go to the eclipse official website to download PHP-Eclipse:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.