18Debugging

What if there’s a bug in our code? It happens to the best of us. We can generally say that there are two kinds of bugs we can encounter. One is a syntactical error made while writing the Sass—that is, we may have passed in the wrong number of arguments to a function. Luckily, Sass makes finding these mistakes a breeze. The Sass development team has worked really hard to make sure that the error messages make as much sense as possible.

On top of that, if you have an error in your Sass code, it won’t just keep quiet. Sass could have failed silently, where you would reload the page you are styling and all of a sudden it would be unstyled. Sass doesn’t play that way. Sass loves you! Sass will generate a special CSS style sheet that ...

Get Pragmatic Guide to Sass now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.