Debugger configuration of phped and Zend studio for eclipse

Source: Internet
Author: User
Tags php debugger
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.

 

 

 

 

 

 

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.