Sass @debug Rules

Last Updated:

Sass @debug Rules

The @debug allows you to see the value of a variable or expression while you're developing your stylesheet.

Example

SASS TO CSS CONVERTER
@function myFunction($x){ // Check your console @debug "Value of x : #{$x}"; $result: $x * 2; @return $result; } footer ul{ font-size: myFunction(12) * 1px; }

Syntax

@debug "debug message";

Share this Page

Meet the Author