30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Working with the Debugger<br />

Zend Server <strong>Reference</strong> Manual<br />

The Debugger API that is included in Zend Server is a remote debugging tool for developers who work<br />

with Zend Studio. If the Debugger Component is not set to "On" in the Components page, you are not<br />

able to run remote debug sessions using Zend Studio. For more information on turning the Debugger<br />

Component to "On", see Working with Components.<br />

From the Zend Server perspective, other than defining allowed hosts and denied hosts, no additional<br />

interaction is required.<br />

The following procedure describes how to define allowed hosts for debugging. Users define allowed hosts<br />

to create a list of IP addresses (of computers that run Zend Studio) that have permission to debug the<br />

PHP code that runs on the server.<br />

To define allowed hosts for debugging:<br />

1. In the Administration Interface go to Server Setup | Debugger.<br />

2. In the "Allowed Zend Studio Clients for Debugging" section, enter a valid IP address or<br />

enter a range by entering the beginning of an IP address and adding '0' instead of the<br />

rest of the number. To make sure you are using Wildcards (*) to specify a range of IPs<br />

select the pattern you want from the drop-down list.<br />

3. From the drop-down list, select an option according to the type of IP address you<br />

entered. Click 'Exact IP address only' for a single IP, or one of the other options to<br />

represent a range of hosts.<br />

4. Click to add the Host.<br />

5. The changes are applied after you restart the Server<br />

The IP or range of IPs is allowed to connect to the server to debug PHP code with Zend Studio.<br />

To remove a specific IP from the list, click "Remove".<br />

Important Note:<br />

If your machine has several IP addresses (for example if you are using a wireless network connection on<br />

a laptop) verify that you have defined all the possible IP addresses as "Allowed Hosts for Debugging" or<br />

that the IP you want to use is first in the list of IPs in Zend Studio for Eclipse. (In Window | Preferences |<br />

PHP | Debug | Installed Debuggers, verify that Zend Debugger is selected and click Configure in the<br />

Client Host/IP field.)<br />

103

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!