src/Controller/Component/LogComponent.php
public function debug($scope, $message, $context = [], $config = []) {
        return $this->write('debug', $scope, $message, $context, $config);
    }
public function debug($scope, $message, $context = [], $config = []) {
        return $this->write('debug', $scope, $message, $context, $config);
    }
Convenience method to log debug messages

@param string|array $scope key can be passed to be used for further filtering
@param string $message log message
@param array $context Additional data to be used for logging the message.
See Cake\Log\Log::config() for more information on logging scopes.
@param  mixed $config : change base config (ex request, session...)
@return bool Success