enable_debug_mode ( $enabled )

Enables HTTP request/response header logging to STDERR.

Access

public

Parameters

Parameter

Type

Required

Description

$enabled

boolean

Optional

Whether or not to enable debug mode. Defaults to true.

Returns

Type

Description

$this

A reference to the current instance.

Examples

Enable the logging of HTTP request/response headers to STDERR.

Note: This method is inherited by all service-specific classes.

// Adjust offset
$sdb = new AmazonSDB();
$sdb->enable_debug_mode();

// Test if the value was set
var_dump($sdb->debug_mode);
Result:
bool(true)

Source

Method defined in sdk.class.php | Toggle source view (5 lines) | View on GitHub

public function enable_debug_mode($enabled = true)
{
    $this->debug_mode = $enabled;
    return $this;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback