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 breakpoint debugging. this is -- ZendDebu is not a new product, so we will not introduce it. 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:
Copy codeThe code is as follows:
[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.