original_string: public function setDebug($flag = true)
      {
          $this->debug = $this->getSession()->debug = (bool) $flag;
          if (true == $this->debug) {
              if (isset($this->options['debugOptions'])
                  && is_array($this->options['debugOptions'])) {
                      $this->initializeOptions($this->options['debugOptions']);
                  }
          } else {
              $this->initializeOptions($this->options);
          }
      }
code: public function setDebug($flag = true)
      {
          $this->debug = $this->getSession()->debug = (bool) $flag;
          if (true == $this->debug) {
              if (isset($this->options['debugOptions'])
                  && is_array($this->options['debugOptions'])) {
                      $this->initializeOptions($this->options['debugOptions']);
                  }
          } else {
              $this->initializeOptions($this->options);
          }
      }
code_tokens: public function setDebug ( $ flag = true ) { $ this -> debug = $ this -> getSession ( ) -> debug = ( bool ) $ flag ; if ( true == $ this -> debug ) { if ( isset ( $ this -> options [ 'debugOptions' ] ) && is_array ( $ this -> options [ 'debugOptions' ] ) ) { $ this -> initializeOptions ( $ this -> options [ 'debugOptions' ] ) ; } } else { $ this -> initializeOptions ( $ this -> options ) ; } }
docstring: Set debug flag
  
  @param string $flag
docstring_tokens: Set debug flag