For a long time, writing php uses Dreamweaver. Sometimes it is really painful. If you have a bug and want to see the values of some elements, you must use echo output to know, now I have learned a powerful breakpoint debugging tool, and php can finally be like java ,.. NET. This is the ZendDebugger.
Things are not new products, so we will not introduce them. The following describes the configuration process.
First, download ZendDebugger. Download link: consumer
Decompress the package and you will see these directories.
The numbers in front of these folders represent the php version. I used 5.2.6, so I used 5_2_x_comp to put ZendDebugger in this folder. copy the dll to the ext folder under the php Directory, and then open php. ini (Remember, php under wamp. ini uses the X: \ wamp \ bin \ apache \ apache2.2.8 \ bin \ directory). Add the following lines of code at the bottom:
[Zend]
Zend_extension_ts = "D: \ soft \ wamp \ bin \ php \ php5.2.6 \ ext \ ZendDebugger. dll"
Zend_debugger.allow_hosts = 127.0.0.1
Zend_debugger.expose_remotely = always
Save and close. continue to view the items in the downloaded ZendDebugger, find dummy. php, and copy it to the www directory, which is located at X: \ wamp \ www.
Restart wamp and enable http: // localhost/to check whether the ZendDebugger extension loaded by php is normal.
The last step is to configure ZendDebugger In the debugger. Here I will not explain it in detail, because some people use ZendStudio and some people use EPP, which is difficult to adjust. Let's explore it by yourself.