2014-12-30から1日間の記事一覧

ExceptionクラスのgetTrace()を使うとエラーの呼び元が分かる

php

_aaa(); } catch(Exception $e) { print_r($e->getTrace()); } function _aaa() { throw new Exception(); } 結果 Array ( [0] => Array ( [file] => /home/test.php [line] => 48 [function] => _aaa [class] => Test [type] => -> [args] => Array ( ) ) […