yii2-debug: debug panel not shown after upgrade to 2.0.10

What steps will reproduce the problem?

On 2.0.9, debug panel shown properly.

My config (config/config.php) are

   'modules' => [
        'gii' => [
            'class' => '\yii\gii\Module',
            'allowedIPs' => ['127.0.0.1', '::1', '192.168.56.*'],
        ],
        'debug' => [
            'class' => '\yii\debug\Module',
            'allowedIPs' => ['127.0.0.1', '::1', '192.168.56.*'],
        ],
    ],

Did double check my remote IP (on vagrant) with following code:

var_dump($_SERVER['REMOTE_ADDR']);

the result are:

'192.168.56.1' (length=12)

Notice that 192.168.56.1 are on same class on allowedIPs.

What’s expected?

Debug panel should be shown.

What do you get instead?

Debug panel shows only when hit error something like 404, 500. Any request except error exception didn’t captured.

Additional info

Q A
Yii version 2.0.10
PHP version 5.6.26
Operating system Ubuntu 16.04 x64
yii2-debug version 2.0.6

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

@dynasource yes, since i am using vagrant, i need to change session directory other than @app/runtime to make it work. otherwise, i had to create new class that extends Session class just to make it work on 2.0.10.

the thing is, i didn’t use redis/memcached, it just simple apps.

thank you for your assistance, have a nice day!