You are currently viewing Zend Server 5.x documentation. Click here to view the latest Zend Server online documentation.

The codetracingEnable Method

Enable code-tracing component and two directives necessary for creating tracing dumps

 

Limitations: This action requires php 5.3 and will not operate on previous php versions

Required Permissions: full

HTTP method: POST

Supported by Editions: Zend Server, Zend Server Cluster Manager

Request Parameters:

Parameter

 Type

Required

Description

restartNow

Integer

No

Perform a php restart as part of applying the new settings, defaults to true

 

Expected Response Code: 200 OK, 202 Accepted. For more information see Response Format.

Response Format: The new code tracing directive's state.

Possible Action Specific Error Codes:

HTTP Code

Error Code

Description

500

internalServerError

The code tracing action failed

 

Usage Example

Example:

Request:

Post /ZendServerManager/Api/codetracingEnable

 

Response:

<?xml version="1.0" encoding="UTF-8"?>

<zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.1">

    <requestData>

           <apiKeyName><![CDATA[Admin]]></apiKeyName>

           <method>codetracingEnable</method>

    </requestData>

    <responseData>

           <codeTracingStatus>

               <componentStatus>Active</componentStatus>

               <alwaysDump>On</alwaysDump>

               <traceEnabled>On</traceEnabled>

               <awaitsRestart>0</awaitsRestart>

           </codeTracingStatus>

     </responseData>

<zendServerAPIResponse>

 

 

 

 

Related Links

Related Links:

Available API Methods

 

 

 

© 1999-2013 Zend Technologies, Ltd. All rights reserved.