Importing Events Into Zend Studio

Zend Server events can be exported from Zend Server into an event file, which can then be imported into PDT and debugged. This is useful when the developer using PDT does not have access to the Zend Server on which the event occurred.

 

To debug a Zend Server event when you do not have direct access to the Zend Server:

  1. Export the event(s) into a Zend Server event file.

  2. Import and Debug the Zend Server event file in PDT.

Creating a Zend Server event file

Note:

Zend Server events can only be exported through the Zend Server GUI.

 

 

Instructions on how to complete a procedure

To export an event from Zend Server:

  1. Open your Zend Server GUI.

Note:

This can be done from within PDT by selecting the server on which you have configured your Zend Server integration from the drop-down list next to the Zend Server icon on the toolbar . See Configuring Zend Server Settings in Zend Studio for more on configuring a Zend Server in PDT.

  1. Access the Event list by browsing to the Monitor | Events tab.

  2. Click the Event which you want to export.

  1. Click the Export button.

  2. Select to save the file to a location on your file system.

  3. The exported file will be created as an XML file containing the event details.

 

 

Once a Zend Server event file has been created, it can be imported and debugged in PDT.

Importing and Debugging Zend Server Event Files

 

 

Instructions on how to complete a procedure

To import and debug a Zend Server event in PDT:

  1. From the menu bar, go to File | Import | Zend Server | Zend Server Event File and click Next.
    The Import Zend Server Event File dialog is displayed.

  1. Click Browse and browse to the location of the event file.

  2. Click Next.
    A dialog will display with the details of the event.

  1. By default, the event will be debugged on the server according to the server address defined in the event file.
    To debug on a different server, select the Alternate Server option and enter the address for the alternate server.
    Ensure the server on which you are running the debug session is configured to run remote debugging sessions. See Setting Up Remote Debugging for more information.

Note:

By default, a server defined on a local machine will have the server URL "localhost/127.0.0.x". If the address configured for the server from which the file was exported is configured as localhost, selecting the Originating Server option will run the debug session on the localhost server of the machine on which PDT is located, which could be different than the server from which the event was exported. In this case, to debug the event on the originating server select the Alternate Server option and enter the URL of the originating server,

  1. Mark the 'Add debug session to debug history menu' checkbox for the debug session to be available from the debug menu.

  2. Click Finish.

  3. The debug session will launch.
    See Running and Analyzing Debugger Results for more information on running a debug session.

 

.

 

Related Links

Related Links:

Zend Server Integration

Debugging and Profiling Zend Server Events

Importing Events Into Zend Studio

Debugging / Profiling Events from Zend Server

Setting Up Zend Server Integration

PHP Servers Preferences

Setting Up Remote Debugging