You are here: User Guide > Tasks > Working with Plugins > Debugging as a PHP Web Page on Your Amazon EC2 Instance

Debugging as a PHP Web Page on Your Amazon EC2 Instance

Debugging as a PHP web page on your Zend Server Amazon EC2 Instance allows you to debug your PHP application on a Zend Server Instance. This will allow you to use the functionalities of Zend Server to find problems in your code and fix them more efficiently. This is especially useful for the staging phase of development as it most similarly resembles the environment your PHP application will run on. For more information on Zend Server and its functionalities see the Zend Server Online Documentation.

Before debugging on your Zend Server Amazon EC2 Instance you must enable tunneling for your Zend Server Amazon EC2 Instance.

 

 

Instructions on how to complete a procedure

To debug as a PHP web page on your Zend Server Amazon EC2 Instance:

  1. Click the arrow next to the debug button on the toolbar and select Debug Configurations -OR- go to Run | Debug Configurations.
    The Debug Configurations page opens.

  2. Double-click the PHP Web Page option to create a new debug configuration.

  1. Specify the following information in the dialog:

  • Enter a name for the new configuration.

  • Select the Server Debugger to be used (by default this will be the Zend Debugger).

  • Select your Zend Server Amazon EC2 Instance from the PHP Server list.

  1. In the File section click Browse and select your debug target file (the file from which the debugging process will start.)

  2. Select whether the Debugger should stop at the first line of code by marking/unmarking the 'Break at First Line' check-box.

  3. The URL to be debugged will have been automatically created based on the file name and your server address. If the URL does not point to your debug target location, unmark the Auto Generate check-box and modify the URL.

  4. To check whether your server connection is correctly configured, and that Zend Studio can communicate with your server debugger, click Test Debugger.

  5. Click Apply and then Debug.

  6. Click Yes if asked whether to open the PHP Debug Perspective.

See Running and Analyzing Debugger Results for more information on the outcome of a debugging process.

 

 

Related Links

Related Links:

Launching an Amazon EC2 Instance in Zend Studio

Amazon AWS Toolkit for Zend Studio

Setting Up Your Zend Server Amazon EC2 Instance

Working with Amazon AWS Toolkit for Zend Studio

 

 

©1999-2012 Zend Technologies LTD. All rights reserved.