src/HttpResponse.php
public function writeDebug($key, $string)
    {
        if (is_null($this->responseDebug)) {
            $this->responseDebug = new ResponseBag();
            $this->response->add($this->responseDebug);
        }
        $this->responseDebug->add(['debug' => [$key => $string]]);
        ErrorHandler::getInstance()->addExtraInfo($key, serialize($string));
    }
public function writeDebug($key, $string)
    {
        if (is_null($this->responseDebug)) {
            $this->responseDebug = new ResponseBag();
            $this->response->add($this->responseDebug);
        }
        $this->responseDebug->add(['debug' => [$key => $string]]);
        ErrorHandler::getInstance()->addExtraInfo($key, serialize($string));
    }
public function writeDebug ( $ key , $ string ) { if ( is_null ( $ this -> responseDebug ) ) { $ this -> responseDebug = new ResponseBag ( ) ; $ this -> response -> add ( $ this -> responseDebug ) ; } $ this -> responseDebug -> add ( [ 'debug' => [ $ key => $ string ] ] ) ; ErrorHandler :: getInstance ( ) -> addExtraInfo ( $ key , serialize ( $ string ) ) ; }
Added informations for debug purposes only.
In case the error it will showed and the result a node called "debug" will be added.

@param string $key
@param mixed $string
Added informations for debug purposes only . In case the error it will showed and the result a node called debug will be added .