Zend Debug Graphics Tutorial (updated 2012-05-18)

Source: Internet
Author: User
Tags phpmyadmin zend

On the network on the installation of Zend Debug and use of the tutorial is relatively simple, remember that the study was a long time to get it done (the most important is the tutorial on the network just taught how to install Zend Debug, not how to say Zend Debug and Zend Toolbar integration, Zend Debug does not work with Zend Tootbar, it is difficult to play a role in the actual programming. So write down this detailed tutorial to help people in need.

First of all, in Zend's official website to find Zend Debug DLL and Firefox plug-ins, I have been packaged to upload to http://download.csdn.net/source/3498366.


The latest Zend Debug and Zend toolbar can be downloaded at http://www.zend.com/en/products/studio/downloads, choosing Studio Web Debugger and Studio Brow Ser Toolbars "can


The following steps are required to install Zenddebugger-5.2.15-cygwin_nt-i386.zip:

1. Decompression Zenddebugger-5.2.15-cygwin_nt-i386.zip

2. Determine which DLL file is required according to the PHP version (4.3.x, 4.4.x, 5.0.x, 5.1.x,5.2.x)

3. Add the following information to the php.ini:

Windows:zend_extension_ts=<full_path_to_zenddebugger.dll>

Windows Non-thread safe:zend_extension=<full_path_to_zenddebugger.dll>

Note: 1. Process-insecure DLLs apply only to Zend Core 2.0.

2. Process-Safe configuration items are zend_extension_ts, and process-safe configuration items are zend_extension, which is not the same.

4. Add the following content to the php.ini:

Zend_debugger.allow_hosts=

Zend_debugger.expose_remotely=always

For example, I'm just debug on this machine, so allow_hosts is 127.0.0.1.

5. Copy dummy.php to the site root directory. (for example, my PHP home directory is E:\wamp\bin\php\php5.2.6, then the dummy.php path is E:\wamp\bin\php\php5.2.6\www\ dummy.php).

6. Then, check the phpinfo information, if you see the screenshot below is installed successfully, otherwise please check the above steps are correct:

Install Zend Debug, then install Firefox plug-in, the method is very simple, dragged to Firefox on the line. If you don't see the Zenddebug toolbar after installation, click the right button in the margin next to the Firefox menu bar, check Zend Debug toolbar, as shown below:

After installing the plug-in you also need to configure, select Zenddebug Toolbar->extra stuff->settings->zend Studio Settings->zendstudio Executable: Configure the location of the Zend Studio executable file, as shown in the following figure:

Finally, in Zend Studio, Windows->preferences->php->debug, check to see if the default Debug has selected Zend Debug, as shown in the following figure:

OK, so far, all the configurations are complete. The test steps are as follows:

1. Import a project to Zend Studio, I lazy, directly import the phpMyAdmin

2. Run phpMyAdmin in Firefox and select the following in the Zend Debug worksheet:


3. Refresh the page, then Zend Studio into the debug mode,

Note:

under Window only 5.2 Zend Debug can be installed successfully, 5.3 Zend Debug did not succeed

I have tried to install 5.3 Zend Debug on Linux to succeed


But in the project, many times have to use php5.3, but want to use Zend Debug, how to do.

Workaround one: Using linux,zend Debug for PHP 5.3 is fine with Linux, and the golden combination of lamp is inherently inseparable from Linux.

Workaround Two: Use Wampserver this integrated development environment, can be very convenient to switch between multiple PHP versions, when peacetime development uses PHP 5.3, need zend Debug Switch to PHP 5.2 (this method personally feel very toss, or recommend the use of Linux).


The steps for Wampserver in multiple PHP versions are as follows:

1) Wampserver The default is to install only one version of PHP, so to install more than one version of PHP.

In the http://www.wampserver.com/en/#download-wrapper click "Download php Addons", in the pop-up window to select a php 5.2 addon download, select one of the version of PHP 5.2 Download, as shown below:



Install the downloaded file, after installation and then look at the PHP version of Wampserver, you can see a number of PHP versions are optional, the following figure:


When you need to use PHP 5.3.3, click on the 5.3.3 tab and click on the 5.2.9 tab when you need to use PHP 5.2.9.


--------------------------------------------------------------------------------------------------------------- -------

[Article title] Zend Debug Graphics Tutorial (updated in 2012-05-18 )

[Article author] Zeng Jiansen

[Author Mailbox]zengjiansheng1@126.com

[Author qq]190678908

[Blog] Http://blog.csdn.net/newjueqi

Http://blog.sina.com.cn/h6k65


To modify a record:

2012-05-18: Added a way to switch between PHP versions on Wamp

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.