You are here: User Guide > Tasks > Working with Code Tracing > Importing Zend Server Event Data

Importing Zend Server Event Data

Importing Zend Server Event Data allows you to view and analyze trace data (execution data) from your server. The execution data includes function call trees, arguments and return values, function execution duration, memory usage and indication for an executed files name and line of code. This enables you to capture problems when they occur, which eliminates the need to set up environments and reproduce the steps that led up to the failure.

Zend Studio allows you to import a .amf, .xml or .zsf file:

Note:

In order to import Zend Server Event Data, you must first export Zend Server Event Data from  your server. For more information see Exporting Trace Information in the Zend Server Online Documentation.

Having an active connection with a licensed version of Zend Server or Zend Server Cluster Manager allows you to fully integrate the Code Tracing feature. For more information see Zend Server.

Importing Zend Server Event Data (amf)

This procedure describes how to import an amf trace data file into Zend Studio. Trace data in an amf format can be imported and used to Open the Source of Trace Data even when there is no active connection with a Zend Server which contains the application.

 

 

Instructions on how to complete a procedure

To import a .amf Zend Server Event File:

  1. To open the Import Wizard go to File | Import | Zend Server | Zend Server Event File.

Import Wizard

  1. Click Next.
    The "Import Zend Server Event File" dialog opens.

Note:

If you have downloaded a .zsf file containing both a .amf file and .xml file, a message will appear after clicking Next in the Import Zend Server Event File dialog asking you which action you would like to take. To use the .amf file to view and analyze trace data, click Trace.

  1. In the "From File" text field, browse to the location of your Zend Server Event File and click Next.
    The "Server path mapping setting" dialog opens.

Server Path Mapping Settings Dialog

  1. Select the server to associate with from the "Associate this trace with server" drop down menu.

  2. You can add, edit or remove a path map from this page using the appropriate buttons. You may select to have a path in your workspace or in the file system. For more information see Adding a New Path Map for Importing a Zend Server Event File.

  3. Click Finish to save the changes.

  4. Click Yes when the "Confirm Perspective Switch" message appears asking your permission to open the Zend Server Code Tracer perspective.
    The Code Tracing Editor opens with the imported Zend Server Event File open in the Tracer View.

For information about the functionalities available in the Zend Server Code Tracer perspective see Working with Code Tracing.

Importing a Zend Server Event File (xml)

This procedure describes how to import an xml event file into Zend Studio. You can import an xml format Zend Server Event File to recreate and debug an error. The Zend Studio functionality for an imported xml  Zend Server Event File is only available when you have access to a Zend Server on which the application exists.

 

 

Instructions on how to complete a procedure

To import a .xml Zend Server Event File:

  1. To open the Import Wizard go to File | Import | Zend Server | Zend Server Event File.

Import Wizard

  1. Click Next.
    The "Import Zend Server Event File" dialog opens.

Note:

If you have downloaded a .zsf file containing both a .amf file and .xml file, a message will appear after clicking Next in the Import Zend Server Event File dialog asking you which action you would like to take. To use the .xml file to recreate the error using the event details, click Event.

  1. In the "From file" text field, browse to the location of your Zend Server Event File and click Next.
    The Import Zend Server Event File dialog opens.

  1. The dialog contains the following information:

  • Event Details Summary

    • Issue ID - A unique number assigned to each event in Zend Server. This number is displayed next to each event in the Events page.

    • Server - The name or host of the originating server.

    • Function - Displays information on the function that triggered the error.

    • File Name - The original location where the event occurred.

    • Line - The line in the file (which is specified in the File Name field) that created the event.

    • Severity - The severity of the event (Warning or Critical). The severity is defined in the event's master settings in the Monitor tab. For more information see Monitor in the Zend Server Online Documentation.

  • Run Diagnostics on

    • Originating Server - Choose this option to run the diagnostics on the originating server. You must have a working connection with the originating server if you choose this option.

    • Alternate Server - Choose this option to run the diagnostics on an alternate server, and enter the details of your server.

Note:

In order to run the diagnostics on an alternate server, the alternate server must also contain the application that generated the events.

  • Others

    • Add debug session to debug history menu - Adds your debug session to the debug history, which you can view by opening the dropdown menu of   from the main toolbar.

  1. Click Finish to save the changes.
    The PHP Debug Perspective opens and the debug session begins.

For information about how to evaluate the debugging results see Running and Analyzing Debugger Results.

 

 

Related Links:
Code Tracing

Working with Code Tracing

Opening the Source of Trace Data

Tracer Preferences

Zend Server Integration

Zend Server

Tracer View

Debugging and Profiling Zend Server Events

 

 

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