Phped and Zend studio for eclipse are the main ide tools in PHP development. They are described a lot and ignored here. Focus on the debugger functions of phped and Zend studio for eclipse.
Declare: Phped and Zend studio for eclipse have many loyal fans. Here we put phped in front of it, considering the small memory usage of phped, especially for users with 1 GB of memory. Zend studio for eclipse has a slightly larger memory usage. We recommend that you use 2 GB memory.
I. phped debugger installation:
Figure 1
1. Enter the website root directory URL and file directory
Figure 2
2. Add the project file directory
Figure 3
3. Check whether PHP debugger is enabled.
Figure 4
4. In the preceding dialog box, select "yes" to load the debugger.
Figure 5
5. Stop the Apache server
Figure 6
6. When the Apache server is enabled, the debugger of phped will automatically add the following content to PhP. ini:
Figure 7
Figure 8
7. If Zend debugger is detected to be commented out, add ";" to the method. See figure 7.
Figure 9
8. After the installation is successful, you can use the debugger function of phped.
*:After verification, if you want to enable the debugger function of phped, the installation directory cannot contain Chinese characters; otherwise, "failed to load PHP debugger client library. Please reinstall the product ."
Ii. Debugger installation of Zend studio for eclipse
1. Download zenddebugger,: http://downloads.zend.com/pdt/server-debugger/
2. Place dummy. php In the root directory of the website;
3. Decompress zenddebugger and copy zenddebugger/php-5.2.x/zenddebugger. DLL to the PHP folder;
*Select the appropriate version based on your PHP version.
4. Modify PHP. ini and add the following content at the end:
[Zend]
Zend_optimizer.optimization_level = 1023
Zend_optimizer.encoder_loader = 1
Zend_extension_ts = "E:/web/serv/Zend/ZendOptimizer-3.3.3/php-5.2.x/zendoptimizer. dll"
; @ The following is the modification part
Zend_extension_ts = "E:/web/serv/PHP/zenddebugger. dll"
*:E:/web/serv/root directory for your PHP and Zend Accelerators
Restart Apache so that you can debugger PHPCodeNow
The preceding example shows that phped automatically installs debugger through the wizard.Manual InstallationThe method is as follows:
1. Download degugger from the official website:
Http://www.nusphere.com/products/debugging_php.htm
Http://www.nusphere.com/products/dbg_wizard_download.htm
2. How to install the debugger "Debugger:
1>. Copy "debugger_ssl/Server/Windows-SSL/x86/dbg-php-5.3.dll"
"D: \ PHP \ XAMPP \ PHP \ ext.
2> modify the configuration file "D: \ PHP \ XAMPP \ PHP. ini" and disable configurations related to debuggers such as xdebug and Zend debugger.
3>. append the "Debugger" configuration information as follows:
[Debugger]
Extension = dbg-php-5.3.dll
Debugger. Enabled = on
Debugger. profiler_enabled = on
Debugger. hosts_allow = 127.0.0.1
Debugger. hosts_deny = all
Debugger. Ports = 7869,100
Note: by defaultPortYes7869As shown in.
Note thatDebuggerThe version must bePHPVersionCorrespondingly, myPHPYes5.3, CorrespondingDebuggerIsDbg-php-5.3.dll.
4> restart Apache and start debugging.