Extend Yii With Debug Function

Hey,

I use Yii in my project , and i am using Yii::trace() .

I want to be able to do the same with debug , so i want to have Yii::debug() function.

how can i just add a static debug function to be able to run Yii::debug ??

Thanks

http://www.yiiframework.com/extension/yii-debug-toolbar/

Looks nice , yet its a UI debug feature.

I just want to be able to add a function called debug to my Yii, and call it like that : Yii::debug("something");

well , i have decide to do the following:

  1. globals.php file was added , check out : http://www.yiiframework.com/wiki/31/use-shortcut-functions-to-reduce-typing/

  2. debug function was added.