G
G
gerrper2014-09-06 00:06:54
Yii
gerrper, 2014-09-06 00:06:54

Yii2-debug is not working. Everything is connected. What's wrong?

Hello,
Yii2 basic application,
composer has

"require-dev": {
        ...,
        "yiisoft/yii2-debug": "*",
        ...
    }

in web.php :
if (YII_ENV_DEV) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = 'yii\debug\Module';

    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = 'yii\gii\Module';
}

there is no xdebug in php.ini
However, the debug panel does not appear anyway.
What's wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Zelenin, 2014-09-06
@gerrper

no ip address specified

A
Aleksey Bernackiy, 2014-11-01
@usualdesigner

Add $config['modules']['debug']['allowedIPs'] = ['YOUR.IP.ADDRESS'];
For all ips: $config['modules']['debug']['allowedIPs'] = ['*'];

I
ILYA, 2016-06-29
@iliacmd

In the case of nginx , you should pay attention to location. In my case, the $args parameter was omitted .
It should be like this:

location / {
    try_files $uri $uri/ /index.php?$args;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question