You are here: User Guide > Tasks > Debugging and Profiling Zend Server Events > Importing .xml Events into Zend Studio

Importing .xml Events into Zend Studio

Zend Server events can be exported from Zend Server into a .xml event file which allows you to recreate an error when you do not have access to the Zend Server on which the event occurred. The event can then be imported into Zend Studio and debugged.

For information about importing events using the Code Tracing feature see Working with Code Tracing. This will also allow you to import a .amf event files into Zend Studio .

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 Zend Studio.

Exporting 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 Zend Studio 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 Zend Studio .

  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 exported it can be imported and debugged in Zend Studio.

 

Importing and Debugging Zend Server Event Files

 

 

Instructions on how to complete a procedure

To import and debug a Zend Server event in Zend Studio :

  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 open  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 Zend Studio 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:

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

Importing a Zend Server Event File

Code Tracing

 

 

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