Jump to:

1385 Posts in 493 Topics by 522 members

Themes

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

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 636 Views
  • _Vince
    Avatar
    Community Member
    161 Posts

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

    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?

  • Pigeon
    Avatar
    Community Member
    243 Posts

    Re: debug.css what is it, do I need it and can I get rid of it? Link to this post

    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.

  • _Vince
    Avatar
    Community Member
    161 Posts
    636 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.