Raw SQL output

Whats the command to output the raw sql that is being sent to the db (I wish to check what it looks like and all the values being sent)

Just enable profiler via config:




'db'=>array(

         …

        'enableProfiling'=>true,

        'enableParamLogging' => true,

),

'log'=>array(

    'class'=>'CLogRouter',

    'routes'=>array(

        …

        array(

            'class'=>'CProfileLogRoute',

            'levels'=>'profile',

            'enabled'=>true,

        ),

    ),

),