I'm trying to expand my usage of Sassy, seeing what more can be done with it. Wondering if the Sassy compiler is able to add SASS/Compass compatible debug info? I'm trying to get the Firebug FireSASS extension to work per these instructions:

https://github.com/nex3/firesass

Usage

First, install FireSass. Second, enable Sass's :debug_info option. If you're using Sass with a Ruby web framework, you probably want to do:

Sass::Plugin.options[:debug_info] = true

Add this to config/environment.rb in Rails, or config.ru in other Ruby frameworks.

If you're using Compass, instead do:

sass_options = {:debug_info => true}

Add this to config/compass.rb, or wherever else your Compass configuration file is.

If you're using Sass from the command line, just pass in the --debug-info flag. Finally, delete all the existing CSS files so that they'll be regenerated.

CommentFileSizeAuthor
#1 firesass_debug_info.png37.04 KBrowbotony

Comments

rowbotony’s picture

Title: sass_options / sass debug / firesass? » sass_options / sass debug_info / firesass?
StatusFileSize
new37.04 KB

I found after poking around that I can change line #334 of the file sassy/phpsass/SassParser.php. Default = FALSE, I changed it to TRUE.

      'debug_info' => TRUE,

and we are good to go! Now Firebug w/FireSass shows the code and line numbers in my .scss code, sweet!

Any way we may be able to do this in the UI or with a URL string that I am not aware of?

richthegeek’s picture

Hey, thanks for the tip!

I'll integrate this when I have time and push it along with a few fixes to the 2.x-latest branch (@import resolution, url path resolution)

richthegeek’s picture

Status: Active » Closed (fixed)

Implemented in 2.0-rc6

rowbotony’s picture

Magnificent! Downloaded, updated, working like a charm! I also very much like the new Output Style option. The only minor issue I noticed is that - if Output Style: Compressed is selected then the FireSASS debug doesn't work, but it does work properly on the other three Output modes. Of course why would one select "debug mode" and "Compressed output"? Because users do silly things! :) So you may want a sanity check on that, even a JavaScript "Hey Fella - you can't select both those options at the same time" alert or something :)

THANK YOU!!!!
--Tony

dddbbb’s picture

So, so sweet. Thanks a bzillion. I love this module.