Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

debug.css what is it, do I need it and can I get rid of it?


Go to End


3 Posts   2024 Views

Avatar
_Vince

Community Member, 165 Posts

19 February 2013 at 5:32pm

Hi.

I'm looking at 3.0.4 for the first time and using the "Simple" theme.

With Firebug, I see that it calls a css file called "debug.css".

I can't find any info on this file, except that it's called from framework/dev/DebugView.php: and framework/templates/Controller.ss.

What does this file do and, if it's just used for debugging, why does it show up on Firebug when no errors or debugging are taking place?

It's overriding layout.css. Should it be doing that?

Do I need this file?

What is it for?

Can I get rid of it?

Avatar
dhensby

Community Member, 253 Posts

19 February 2013 at 9:22pm

Debug.css is used to style the frameworks error notices warnings and other debug messages.

I don't think it is required in the theme as there is a core file for this too. But why not have the themed one? It shouldn't be included for any non-dev environments.

Avatar
_Vince

Community Member, 165 Posts

20 February 2013 at 7:35am

Thanks heaps.