CActiveRecord attributes on debugging

I’m using Yii 1.1.6 with Netbeans 6.9 and latest xDebug. One thing I’m missing from the debugging environment is the ability to sneak into the active record’s attributes. Is there a way to watch them when debugging?

Thank you.

just a bump because I mispelled the title. I’ve updated it :)



maybe set the CActiveRecord $_attributes property to public while development only then switch it again when finished, maybe xdebug will show it

Thank you! That did the trick. I can set $_attributes public in my test environment and keep it private in production. I’ll try to remember that when upgrading yii… ;)

With this solution I have to modify my source code whenever I want to have a look at the attributes… It’s a pity not to have a version of xdebug that allows for watching expressions. Thank you anyway!

Do you use XDebug 2.1.0?

yes, this is what phpinfo reports: