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.

Themes /

Discuss SilverStripe Themes.

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

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


Reply


3 Posts   669 Views

Avatar
_Vince

Community Member, 162 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
Pigeon

Community Member, 243 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, 162 Posts

20 February 2013 at 7:35am

Thanks heaps.