Detailed Zend Debugger Installation whole process _php Tutorial

Source: Internet
Author: User
Debugging technology is an integral part of our programming, and the debugger is a must-have component for every IDE environment. That being the case, Zend Studio's integrated environment has a debugger, which is a matter of course, but the debugger is used in its configuration and its powerful features are sure to amaze you!

In fact, the debugging capabilities of Zend Studio (hereafter referred to as Zde) are divided into internal debugging and remote debugging. Internal debugging is the initial debugging of the code with ZDE built-in PHP (4, 52 versions), and we focus on remote debugging because it can fully simulate a real-world operating environment.

Remote debugging requires server-side component support, our content today is how to install the server-side debugging environment, the use of the debug component is Zend Debugger, it is light and adequate, at the time of writing this article, The latest version is 5.2.14, which is slightly updated with the 5.2.10 version, which is widely circulated on the web. My server is Apache under Windows, so I downloaded the Windows version of Zend Debugger, down the compressed package about 2.1M, there is a Readme.txt, I think it is necessary to see see:

 
 
  1. Zend Debugger Installation Instructions
  2. —————————————
  3. 1. Locate zenddebugger.so or ZendDebugger.dll file that's compiled for the correct version of PHP
  4. (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x) in Theappropriate directory.
  5. 2. Add the following line to the php.ini file:
  6. Linux and Mac OS X: zend_extension =/full/path/to/zenddebugger.so
  7. Windows: Zend_extension_ts =/full/path/to/zenddebugger.dll
  8. Windows non-tread Safe: zend_extension =/full/path/to/zenddebugger.dll
  9. (*) The Windows Non-thread Safe is used only with Zend Core 2.0
  10. 3. Add the following lines to the php.ini file:
  11. zend_debugger.allow_hosts = < ip_addresses >
  12. zend_debugger.expose_remotely = always
  13. 4. Place dummy.php file in the document root directory.
  14. 5. Restart Web server.

Here is a very detailed description of the installation method, then I will describe it in my obscure language again, the following is a list of all files in the package:

 
 
  1. Zenddebugger-5.2.14rc9-cygwin_nt-i386md5
  2. Zenddebugger-5.2.14rc9-cygwin_nt-i386inventory.xml
  3. Zenddebugger-5.2.14rc9-cygwin_nt-i3864_3_x_comp
  4. Zenddebugger-5.2.14rc9-cygwin_nt-i3864_3_x_compzenddebugger.dll
  5. Zenddebugger-5.2.14rc9-cygwin_nt-i3864_4_x_comp
  6. Zenddebugger-5.2.14rc9-cygwin_nt-i3864_4_x_compzenddebugger.dll
  7. Zenddebugger-5.2.14rc9-cygwin_nt-i3865_0_x_comp
  8. Zenddebugger-5.2.14rc9-cygwin_nt-i3865_0_x_compzenddebugger.dll
  9. Zenddebugger-5.2.14rc9-cygwin_nt-i3865_1_x_comp
  10. Zenddebugger-5.2.14rc9-cygwin_nt-i3865_1_x_compzenddebugger.dll
  11. Zenddebugger-5.2.14rc9-cygwin_nt-i3865_2_x_comp
  12. Zenddebugger-5.2.14rc9-cygwin_nt-i3865_2_x_compzenddebugger.dll
  13. Zenddebugger-5.2.14rc9-cygwin_nt-i3865_2_x_nts_comp
  14. Zenddebugger-5.2.14rc9-cygwin_nt-i3865_2_x_nts_compzenddebugger.dll
  15. zenddebugger-5.2.14rc9-cygwin_nt-i386dummy.php
  16. Zenddebugger-5.2.14rc9-cygwin_nt-i386readme.txt

Extract the appropriate and your current PHP version corresponding to the Zend debugger version, my PHP version is 5.2.5, so I dragged 5_2_x_comp out (as for 5_2_x_nts_comp refers to Non-tread safe, Do not understand the specific purpose, it will not be used), I will 5_2_x_compzenddebugger.dll moved to D:myserverzenddebugger5_2_ XZendDebugger.dll, unzip the dummy.php in the package to the Web root directory, I here Apache DocumentRoot set in D:/myserver/wwwroot, copy dummy.php to D: Myserverwwwroot, and then modify the php.ini, adding these content:

 
  
  
  1. Zend_extension_ts = D :/myserver/zenddebugger/5_2_x/zenddebugger.dll
  2. zend_debugger.allow_hosts = 127 . 0.0.1/32,192.168.1.88/24
  3. zend_debugger.expose_remotely = always

Then restart Apache, after a little wait, we enter phpinfo () to see success or not?


http://www.bkjia.com/PHPjc/445906.html www.bkjia.com true http://www.bkjia.com/PHPjc/445906.html techarticle debugging technology is an integral part of our programming, and the debugger is a must-have component for every IDE environment. That being the case, Zend Studio's integrated environment has a debugger ...

  • 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.