Debug Module Customization

Hi,

I am looking for a simple way of turning off the debug toolbar, but keep the debug module running, so I can access it through url.

Also I am having problems with url suffixes.

My url settings is:




'urlManager'=>array(

            'enablePrettyUrl'=>true,

            'showScriptName'=>false,

            'suffix' => '.html',

            'rules' => array(

                'index' => 'site/index',

                [

                    'pattern' => 'embed/<domainName>/<pageName>',

                    'route' => 'site/embed',

                    'suffix' => '/',

                ]

            ),

        ),



So basically I want to have .html suffix after every regular url (like domain.com/contact.html) apart from embed* url. This was very fiddly to setup and the embed suffix "/" is for me extremely ugly. Also it creates problem with the debug tool because now I have to always add .html at the end…