php-5.5.x + Xdebug + Zend Studio Debug environment settings

Source: Internet
Author: User
Tags ini php download zend

1. Download and install Xdebug

1.1 to download for your PHP version of the Xdebug

1.2 Copy to the PHP installation directory Ext folder, renamed to Php_xdebug.dll

1.3 Configuration Xdebug

Add the following in the php.ini tail


zend_extension= "Php_xdebug.dll"

Xdebug.remote_enable = On

Xdebug.remote_host = "localhost"

Xdebug.remote_port = 9000

Xdebug.remote_handler = "DBGP"

Xdebug.auto_trace = 1

Xdebug.collect_includes = 1

Xdebug.collect_params = 1

Xdebug.collect_return = 1

xdebug.default_enable = 1

Xdebug.collect_assignments = 1

Xdebug.collect_vars = 1

Xdebug.remote_autostart = 1

Xdebug.remote_connect_back = 1

Xdebug.show_local_vars = 1

Xdebug.show_exception_trace = 0

Run Phpinfo (), see the Xdebug module information out is done.

2. Configure Zend Studio Support Xdebug

The configuration here is very important.

Select Zend Studio Window "preference" PHP installed debuggers double click Xdebug, Pop-up dialog box as shown below

The Debug Port is set to the same setting as in php.ini (default is 9000).

Accept Remote session (JIT) selection localhost

Allows the browser to access the Web site when Zend Studio automatically opens the file to start debugging.

Option Description: Http://

OFF: Turn on debugging when closing browser access;

localhost: Turn on debugging when accessing Web pages through localhost.

Any: As long as the access to PHP on the server to open debugging;

Prompt: Pop-up asks if you want to debug when accessing PHP on the server.

Once the Zend Studio is turned on to allow Xebug debugging, all access to the PHP page will go into debugging.

We can use Easy Xdebug Firefox plugins to control whether or not to turn on debugging on the client.

1, first php.ini settings

Xdebug.remote_autostart = 0

Debugging is not started automatically.

2, install Firefox plug-in easy Xdebug,

After installing the plug-in, click the following figure in the lower right corner of the small green bug, the bug has a small red dot, when we visit the test server, Zend studio on the back of the automatic pop-up debugging.

In addition, you can set up the use of Xdebug in Zend Studio to directly debug the PHP document, here is not much to say.


Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.