yii debug toolbar not displaying

Hello,

I am new to Yii so I apologize if this is a stupid question.

I have successfully installed yii debug via composer but I don’t see the debug toolbar when I visit my page (or I don’t know how to use it).

If I understand correctly, I should modify my config file - which I presume is my web.php file (basic/config/web.php) as follows:

<?php

$params = require(DIR . ‘/params.php’);

$config = [

'id' =&gt; 'basic',


'basePath' =&gt; dirname(__DIR__),


'bootstrap' =&gt; ['log'],


'bootstrap' =&gt; ['debug'],


'modules' =&gt; [


    'debug' =&gt; [


        'class' =&gt; 'yii&#092;debug&#092;Module',


        'allowedIPs' =&gt; ['&lt;My.IP.Here&gt;', '127.0.0.1', '::1']


    ],


],


//... rest of file here &#46;&#46;//

I am not using a localhost view, I am visiting the live web page, but I don’t see any debug toolbar.

Thanks for your help

In what environment do you run your app live? If it’s a production environment that’s the reason why you don’t see a debugger toolbar.

Thank you. As it so happens the error was because I inserted the code in the wrong place. After a bit of testing I discovered that the relevant code is at the bottom of the config/web.php file.

However… being new to this… I wasn’t aware of your point about the Dev environment. I have been reading and testing and now understand your point. Thank you.