如何使用 CWebLogRoute 记录和调试变量 简介 我看了几遍关于使用外部库来调试PHP代码(如: firePHP)的文章, 读了这篇文章你会发现在 Yii 中没有必要使用这些外部库. $anotherTest = array('one','two','three'); // variable // please, check the inclusion of the category vardump // not including the category, it wont display at all. echo Yii::trace(CVarDumper::dumpAsString($test),'vardump');