Stack trace and error handler


I am having some issues with the stack trace display when there is an error on a page.

I actually just created a new environment "test" in the environment folder. Then i made a deliberate error to see if everything is working ok but the error is not rendering like on the dev environment.

Dev stack trace



Test stack trace



Could anyone tell me how to make the test env render the stack trace like the dev env?

can someone please reply?

Not sure but I think it has todo with the debug extension.

Somewhere in your "test" configuration file you have to enable "debug":


    // configuration adjustments for 'test' environment

    $config['bootstrap'][] = 'debug';

    $config['modules']['debug'] = 'yii\debug\Module';



This is for the debug toolbar and as far as my config are concerned, i copied the dev config in the environments folder and pasted then renamed it to test. and i also made changes to the YII_ENV constant.

any other ideas??