Which directive is used to detect the errors in SASS ?
Last Updated :
21 Oct, 2021
In order to detect the errors in SASS, one should use @debug Directive. It displays the SassScript expression values. It can be used when anyone wants to see the value of a variable or expression while developing the file.
Let’s see an example so that we get to know more information about the @debug directive in a practical way. Just follow these steps to know the implementation:
Example: Let’s see another example to get a clear idea about it. Follow the same steps as above.
CSS
$ width : 350px ;
$colors: (
IndianRed: #CD5C5C ,
Salmon: #FA8072 ,
LightCoral: #F08080
);
$font-sizes: heading, p, sm;
.container{
@debug $width;
@debug $colors;
@debug $font-sizes;
}
|
Output:
Share your thoughts in the comments
Please Login to comment...