Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Zend Debugger

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to install Zend Debugger. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Debugging technology is an indispensable part of our programming, and the debugger is a necessary component of every IDE environment. In that case, it's only natural that Zend Studio's integrated environment has a debugger, but you'll be amazed at the power it shows when configured!

In fact, the debugging function of Zend Studio (hereinafter referred to as ZDE) is divided into internal debugging and remote debugging. Internal debugging is a preliminary debugging of the code using ZDE's built-in PHP (there are versions 4 and 5). We focus on remote debugging because it can completely simulate a real running environment.

Remote debugging needs the support of server-side components. Our content today is how to install this server-side debugging environment. The debugging component used is Zend Debugger, which is light and sufficient. At the time of this writing, its * * version is 5.2.14, slightly updated with the 5.2.10 version that is widely circulated on the network. My server is apache under windows, so I downloaded the windows version of Zend Debugger, the compressed package is about 2.1m, there is a readme.txt, I think it is necessary to see Hazi:

ZendDebugger installation instructions-1.Locate ZendDebugger.so or ZendDebugger.dll file that is compiled for the correct version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x) in theappropriate 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.03.Add the following lines to the php.ini file: zend_debugger.allow_hosts= zend_debugger.expose_remotely=always 4. Place dummy.php file in the document root directory. 5. Restart web server.

The installation method has been described in great detail here, so let me describe it again in my obscure language. here is a list of all the files in the 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

Extract the appropriate ZendDebugger version corresponding to your current php version, my php version is 5.2.5, so I dragged 5_2_x_comp out (as 5_2_x_nts_comp refers to non-tread safe, I don't understand the specific use, so I won't use it in vain), I move 5_2_x_comp\ ZendDebugger.dll to D:\ myserver\ ZendDebugger\ 5room2roomx\ ZendDebugger.dll Extract the dummy.php in the compressed package to the web root directory. If the DocumentRoot of my apache is set to D:/myserver/wwwroot, copy dummy.php to D:\ myserver\ wwwroot, and then modify the php.ini to add these contents:

Zend_extension_ts=D:/myserver/ZendDebugger/5_2_x/ZendDebugger.dll zend_debugger.allow_hosts=127.0.0.1/32192.168.1.88/24 zend_debugger.expose_remotely=always

Then restart apache, and after a little waiting, we type phpinfo () to see if it succeeds?

It turned out to be working well.

Next, open zde, tools menu-> *, select the debugging tab, set the debugging method to server, and fill in the URL of web server for Debug Server URL. Here, the port of apache is 8080. If it is port 80 by default, you can omit OK and make sure it is completed (see figure).

Select tools-> check the Debug Server connection, and the dialog box selection is yes, and we see a prompt for a successful connection.

At this point, our Debug Server installation is complete.

This is the end of the article on "how to install Zend Debugger". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report