Chrome Developer Tools now supports Sass debugging out-of-the-box.
Updated to include source maps:
Previous versions used inline comment in your css to provide a refernce to the source code (see below how-to). recent versions of sass (3.3+) and chrome (31+) use source maps for that:
- Make sure you have Sass 3.3.x
- Compile your Sass with the
--sourcemap
flag. - In Chrome/ium DevTools open settings and click general.
- Turn on “Enable CSS source maps”.
More info is available on the Chrome dev tools blog:
https://developers.google.com/chrome-developer-tools/docs/css-preprocessors
Older versions:
1. First, you should compile your Sass with --debug-info
turned on.
2. In Chrome/ium go to about:flags
3. Enable Developer Tools experiments
4. In your inspector (F12), open “Settings”, then go to the “Experiments” tab
and check “Support for SASS”.