Muut
April 17, 2016, 6:41am
1
Dump used to work fine but I seem to have turned it off somehow. What have I done wrong? In /Applications/MAMP/htdocs/user/config/system.yaml
I have
debugger:
enabled: true
twig: true
shutdown:
close_connection: true
[NB in the documentation at https://learn.getgrav.org/advanced/debugging the screensnip shows enabled: false
but I presume that’s a mistake? Anyway, I’ve tried both.]
My template includes this:
<h4>dump </h4>{{ dump(page.header) }}
And the rest of the template is working - it shows the content and the children fine. But I don’t get a little G icon leading to the debug bar.
Help appreciated!
Muut
April 17, 2016, 4:08pm
3
It wasn’t. On seeing your question I tried again with
cache:
enabled: true
in /Applications/MAMP/htdocs/user/config/system.yaml
, but I still don’t get a debug bar.
Muut
April 17, 2016, 6:05pm
4
Have you somehow disabled JQuery in your theme/site? The debugbar needs JQuery to work. You can probably check your browser’s console for any JS errors that are being output.
Muut
April 17, 2016, 8:05pm
5
No messages at all in the Chrome javascript console.
Muut
April 17, 2016, 9:10pm
6
Do you have any other environment configuration files like localhost/config/system.yaml
?
Muut
April 18, 2016, 6:24am
7
Only the ones that were supplied. Shall I do a fresh install?
Muut
April 18, 2016, 7:42am
8
Fixed the docs.
Keep cache disabled to make sure older settings are not cached. Also try clearing thge cache.
Additionally, you theme must correctly output javascript and css.
You can check one of the GetGrav-provided skeletons (i.e. Blog Site) as an example.
Muut
April 18, 2016, 3:19pm
9
I’m using Antimatter, unchanged afaik. I’ll try starting over.
Muut
April 19, 2016, 9:32pm
10
I restarted with a new install and the problem has gone away.