脚本宝典收集整理的这篇文章主要介绍了php – 如何在Yii中转储变量以进行调试?,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
2015-03-18 20:54:11 [::1][-][-][warning][yii\log\Dispatcher::dispatch] Unable to send log via yii\debug\LogTarget: Exception 'Exception' wITh message 'Serialization of 'SimpleXMLElement' is not Allowed' in /cygdrive/c/Users/Chloe/workspace/AffiliateArbitrage/vendor/yiisoft/yii2-debug/LogTarget.PHP:58 Stack trace: #0 /cygdrive/c/Users/Chloe/workspace/AffiliateArbitrage/vendor/yiisoft/yii2-debug/LogTarget.PHP(58): serialize(Array) #1 /cygdrive/c/Users/Chloe/workspace/AffiliateArbitrage/vendor/yiisoft/yii2-debug/LogTarget.PHP(112): yii\debug\LogTarget->export(Array) #2 /cygdrive/c/Users/Chloe/workspace/AffiliateArbitrage/vendor/yiisoft/yii2/log/Dispatcher.PHP(183): yii\debug\LogTarget->collect(Array,true) #3 /cygdrive/c/Users/Chloe/workspace/AffiliateArbitrage/vendor/yiisoft/yii2/log/Logger.PHP(170): yii\log\Dispatcher->dispatch(Array,true) #4 [internal function]: yii\log\Logger->flush(true) #5 {main}
参考
http://www.yiiframework.com/doc-2.0/guide-runtime-logging.html
VarDumPEr::dump($var);
就个人而言,我不使用它,只是尝试了几次进行测试.
我认为最好将Xdebug用于此目的.
另见PsySH.
以上是脚本宝典为你收集整理的php – 如何在Yii中转储变量以进行调试?全部内容,希望文章能够帮你解决php – 如何在Yii中转储变量以进行调试?所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。