Display sql statement

Can any body suggest , how to display SQL statements, executed by CActiveDataProvider / CSqlDataProvider?


'db'=>array(

         …

        'enableProfiling'=>true,

        'enableParamLogging' => true,

),

'log'=>array(

    'class'=>'CLogRouter',

    'routes'=>array(

        …

        array(

            'class'=>'CProfileLogRoute',

            'levels'=>'profile',

            'enabled'=>true,

        ),

    ),

),

for this case we have to use FireFox. Can’t we directly access the sql statement using echo $varName; ?

Firefox? What for? It works in all browsers.