Check config debug status

Hi all,

how to access the config.php debug status? I want to set some featurers offline if debug mode = true.

thx

if (option('debug', false) === true ) {
  // do stuff
}

thx