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] = trueAdd 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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | firesass_debug_info.png | 37.04 KB | rowbotony |
Comments
Comment #1
rowbotony commentedI found after poking around that I can change line #334 of the file
sassy/phpsass/SassParser.php. Default = FALSE, I changed it to 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?
Comment #2
richthegeek commentedHey, 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)
Comment #3
richthegeek commentedImplemented in 2.0-rc6
Comment #4
rowbotony commentedMagnificent! 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
Comment #5
dddbbb commentedSo, so sweet. Thanks a bzillion. I love this module.