Setting Up Debugging
Zend Server provides built-in components which allow developers to easily and securely debug and profile PHP applications in development and production environments using an IDE.
The following procedures describe how to configure Zend Server to allow local and remote PHP debugging and profiling of web applications using an IDE (e.g., Zend Studio, PhpStorm) and your selected server debugger (Zend Debugger or XDebug).
This procedure describes how to activate a debugger for debugging on Zend Server.
Note:
Only one debugger can be activated at the same time.
|
|
|
To activate a debugger:
|
See additional and debugger-specific configuration settings below. |
This procedure describes how to configure debugging on Zend Server with XDebug.
Note:
Make sure that before you configure these settings, you have activated XDebug. For more information, see Activating a Debugger above.
|
|
|
To configure XDebug:
|
|
This procedure describes how to configure general debugging setting for integrating with your IDE.
Note:
This procedure is can only be performed for debugging with the Zend Debugger. Make sure the Zend Debugger is activated.
|
|
|
To configure IDE integration settings:
|
Note: These settings are the default debugger settings, but can be overridden from your IDE. |
This procedure describes how to define allowed hosts for debugging.
Note:
This procedure is can only be performed for debugging with the Zend Debugger. Make sure the Zend Debugger is activated.
Users define allowed hosts to create a list of IP addresses (of computers running an IDE) that have permission to debug the PHP code running on Zend Server.
|
|
|
To define allowed hosts for debugging:
|
The IP or range of IPs is allowed to connect to the server to debug PHP code with your IDE. Important Note: If your machine has several IP addresses (for example if you are using a wireless network connection on a laptop) verify that you have defined all the possible IP addresses as allowed hosts for debugging, or that the IP you want to use is first in the list of IPs in Zend Studio (In Window | Preferences | PHP | Debug | Installed Debuggers, verify that Zend Debugger is selected and click Configure in the Client Host/IP field.) |
This procedure describes how to define denied hosts for debugging.
Note:
This procedure is can only be performed for debugging with the Zend Debugger. Make sure the Zend Debugger is activated.
Users define denied hosts to create a list of IP addresses (of computers running an IDE) that do not have permission to debug the PHP code running on Zend Server.
|
|
|
To define denied hosts for debugging:
|
The IP or range of IPs is not allowed to connect to the server to debug PHP code with your IDE. Note: Do not add the same IP address to both the Allowed and Denied host lists. Pay attention when you specify a range of IP addresses: If you deny a range of addresses that includes an IP that was specified in the Allowed hosts, the host is not allowed to create a debug session. |
This procedure describes how to configure the settings of the client running your IDE and initiating the debugging sessions on Zend Server.
Note:
This procedure is can only be performed for debugging with the Zend Debugger. Make sure the Zend Debugger is activated.
|
|
|
To configure IDE client settings:
|
|