简体   繁体   中英

symfony2 enabling dev environment debug tools(symfony profiler)

I forgot how to enable debug tools symfony2 provides with the dev environment. I'm sure I'm accessing the project through the app_dev.php, but I still don't get any debug tool wrapped around my site when I visit it from safari.
I'm planning to upgrade my project, but first I need to check whether I'm using deprecated functions, and the debug tools provide this info.

As said in the comments, you need to have valid html for the profiler to show up.
First I removed everything in my base twig template and wrote 'test'. That wasn't enough. But the following was:

<!DOCTYPE html>
<html>
<head>
</head>
    <body>
        <h>test</h>
    </body>
</html>

Now I get the web toolbar I wanted.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM