我在调试模式下使用适用于PHP的AWS开发工具包。 但是我看不到控制台上的调试信息。 我想观看AWS开发工具包中的调用堆栈。
我的代码是
<?php
require_once('./vendor/autoload.php');
use Aws\Sns\SnsClient;
$arn = "arn:aws:sns:ap-northeast-1:xxxxxx:yyyyyyy";
$message = 'dummy message';
$client = SnsClient::factory(array(
'profile' => 'default',
'region' => 'ap-northeast-1',
'debug' => true,
));
$result = $client->publish(array(
'TopicArn' => $arn,
'Message' => $message
));
echo $result.PHP_EOL;
此代码输出
$ php publish.php
=====================
Debug output of model
=====================
Model data
-----------
This data can be retrieved from the model object using the get() method of the model (e.g. $model->get($key)) or accessing the model like an associative array (e.g. $model['key']).
[MessageId] => a2b0f132-06cb-5514-b043-a289d7e2bb40
[ResponseMetadata] => Array
(
[RequestId] => a848f1de-4a39-584e-8f28-a2659b10561a
)
请告诉我