Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Twig tab not visible in debug bar

Started by zero2411 1 year ago · 1 replies · 239 views
1 year ago

Hi all,

I'm currently learning Grav and trying to understand which Twig templates are used when a page loads. I’ve enabled the debug bar and also set twig_debug to true.

However, unlike the screenshot shown in the documentation (https://learn.getgrav.org/17/advanced/debugging), I don't see the Twig tab in the debug bar. The tabs I do see are: Messages, Request, Timeline, Exceptions, Config, Plugins, Streams, Deprecated.

TXT
twig:
  cache: true
  debug: true
  auto_reload: true
  autoescape: false
  undefined_functions: true
  undefined_filters: true
  safe_functions: {  }
  safe_filters: {  }
  umask_fix: false

debugger:
  enabled: true
  provider: debugbar
  censored: false
  shutdown:
    close_connection: true
  twig: true

My setup:

  • Grav v1.7.48
  • Chrome v137
  • macOS (Intel)

Any idea why the Twig tab might be missing? Did I miss a setting?

Thanks in advance!

1 year ago

@zero2411, I've never seen the Twig tab either...

I’m currently learning Grav and trying to understand which Twig templates are used when a page loads.

I just follow the {% include 'partials/etc' %} inside the templates. It always starts with the templatename used in the filename of the page eg. default.md, which {% extends 'partials/base.html.twig' %}, which includes others like {% include 'partials/navigation.html.twig' %}, etc.

Most of the time, the templates are only 3 levels deep: default -> base -> navigation

👍 1
last edited 06/06/25 by pamtbaau

Suggested topics

Topic Participants Replies Views Activity
Support · by complanar, 6 days ago
6 152 1 day ago
Support · by Rick Beebe, 6 days ago
2 112 3 days ago
Support · by blu3prince, 3 days ago
0 61 3 days ago
Support · by alex, 5 days ago
2 100 4 days ago
Support · by Marcel, 2 weeks ago
1 151 4 days ago