PHP Server Debugging Zend Debugger installation Tutorial _php tips

Source: Internet
Author: User
Tags php server zend
In fact, the debugging function of Zend Studio ("Zde") is divided into internal debugging and remote debugging. Internal debugging is a zde built-in PHP (with 4, 52 versions) of the Code for initial debugging, we focus on remote debugging, because it can completely simulate a real operating environment.

Remote debugging requires server-side component support, our content today is how to install this server-side debugging environment, the debugging components used is Zend Debugger, it is lightweight and sufficient, when writing this article, The latest version is 5.2.14, which is slightly updated with the widely circulated 5.2.10 version of the Web. My server is Apache under Windows, so I downloaded the Windows version of Zend Debugger, down the compression package about 2.1M, there is a Readme.txt, I think it is necessary to see Hazi:

Zend Debugger Installation Instructions
—————————————
1. Locate zenddebugger.so or ZendDebugger.dll file that's compiled for the correct version of PHP (4.3.x, 4.4.x, 5.0.x, 5 .1.x, 5.2.x) in the appropriate directory.
2. Add the following line to the php.ini file:
Linux and Mac OS x:zend_extension=/full/path/to/zenddebugger.so
Windows:zend_extension_ts=/full/path/to/zenddebugger.dll
Windows Non-tread Safe:zend_extension=/full/path/to/zenddebugger.dll

(*) The Windows Non-thread Safe is used only with Zend Core 2.0

3. Add the following lines to the php.ini file:
Zend_debugger.allow_hosts=<ip_addresses>
Zend_debugger.expose_remotely=always


4. Place dummy.php file in the document root directory.
5. Restart Web server.

The installation method has been very detailed here, so I'll describe it again in my obscure language.
The following is a list of all the files in the compressed package:
Zenddebugger-5.2.14rc9-cygwin_nt-i386\md5
Zenddebugger-5.2.14rc9-cygwin_nt-i386\inventory.xml
Zenddebugger-5.2.14rc9-cygwin_nt-i386\4_3_x_comp
Zenddebugger-5.2.14rc9-cygwin_nt-i386\4_3_x_comp\zenddebugger.dll
Zenddebugger-5.2.14rc9-cygwin_nt-i386\4_4_x_comp
Zenddebugger-5.2.14rc9-cygwin_nt-i386\4_4_x_comp\zenddebugger.dll
Zenddebugger-5.2.14rc9-cygwin_nt-i386\5_0_x_comp
Zenddebugger-5.2.14rc9-cygwin_nt-i386\5_0_x_comp\zenddebugger.dll
Zenddebugger-5.2.14rc9-cygwin_nt-i386\5_1_x_comp
Zenddebugger-5.2.14rc9-cygwin_nt-i386\5_1_x_comp\zenddebugger.dll
Zenddebugger-5.2.14rc9-cygwin_nt-i386\5_2_x_comp
Zenddebugger-5.2.14rc9-cygwin_nt-i386\5_2_x_comp\zenddebugger.dll
Zenddebugger-5.2.14rc9-cygwin_nt-i386\5_2_x_nts_comp
Zenddebugger-5.2.14rc9-cygwin_nt-i386\5_2_x_nts_comp\zenddebugger.dll
zenddebugger-5.2.14rc9-cygwin_nt-i386\dummy.php
Zenddebugger-5.2.14rc9-cygwin_nt-i386\readme.txt

To extract the appropriate version of the Zend debugger that corresponds to your current version of PHP, my PHP version is 5.2.5, so I dragged 5_2_x_comp out (as for 5_2_x_nts_comp safe, Do not understand the specific use, also do not use it, I will 5_2_x_comp\zenddebugger.dll moved to D:\myserver\ZendDebugger\5_2_x\ ZendDebugger.dll, the dummy.php in the compressed package to the Web root directory, I here Apache DocumentRoot set in D:/myserver, copy dummy.php to D:\myserver\ Wwwroot, and then modify the php.ini to add the content:

Zend_extension_ts=d:/myserver/zenddebugger/5_2_x/zenddebugger.dll
Zend_debugger.allow_hosts=127.0.0.1/32,192.168.1.88/24
Zend_debugger.expose_remotely=always

Then restart Apache, and after a bit of waiting, we enter phpinfo () to see if it succeeds or not?

Aha, it's a good run.

The following opens Zde, Tools menu-> preferences, select the Debugging tab, set debugging mode for the server, debug server URL fill in the URL of the Web server, I here Apache port is 8080, if it is the default 80 port, you can omit, OK, set to complete, Determined (as pictured)


Select tool-> Check the debug server connection, out of the dialog box selection is, we saw the connection success of the hint

 
at this point, our debug server has been successfully installed, and the following tutorial will elaborate on how to use Zend Studio's server debugging, please look forward to it.

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.