How can I get the full string of PHP’s getTraceAsString()?

前端 未结 7 1269
南笙
南笙 2020-12-08 10:32

I\'m using getTraceAsString() to get a stack trace but the string is being truncated for some reason.

Example, an exception is thrown and I log the stri

相关标签:
7条回答
  • 2020-12-08 11:24

    Will changing the php.ini setting log_errors_max_len help?

    Also, please note that messages are truncated only during the output, you still can get the original error message with call to $exception->getMessage()

    0 讨论(0)
提交回复
热议问题