src/PhpConsole/Dispatcher/Debug.php
public function dispatchDebug($data, $tags = null, $ignoreTraceCalls = 0) {
		if($this->isActive()) {
			$message = new DebugMessage();
			$message->data = $this->dumper->dump($data);
			if($tags) {
				$message->tags = explode('.', $tags);
			}
			if($this->detectTraceAndSource && $ignoreTraceCalls !== null) {
				$message->trace = $this->fetchTrace(debug_backtrace(), $message->file, $message->line, $ignoreTraceCalls);
			}
			$this->sendMessage($message);
		}
	}
public function dispatchDebug($data, $tags = null, $ignoreTraceCalls = 0) {
		if($this->isActive()) {
			$message = new DebugMessage();
			$message->data = $this->dumper->dump($data);
			if($tags) {
				$message->tags = explode('.', $tags);
			}
			if($this->detectTraceAndSource && $ignoreTraceCalls !== null) {
				$message->trace = $this->fetchTrace(debug_backtrace(), $message->file, $message->line, $ignoreTraceCalls);
			}
			$this->sendMessage($message);
		}
	}
public function dispatchDebug ( $ data , $ tags = null , $ ignoreTraceCalls = 0 ) { if ( $ this -> isActive ( ) ) { $ message = new DebugMessage ( ) ; $ message -> data = $ this -> dumper -> dump ( $ data ) ; if ( $ tags ) { $ message -> tags = explode ( '.' , $ tags ) ; } if ( $ this -> detectTraceAndSource && $ ignoreTraceCalls !== null ) { $ message -> trace = $ this -> fetchTrace ( debug_backtrace ( ) , $ message -> file , $ message -> line , $ ignoreTraceCalls ) ; } $ this -> sendMessage ( $ message ) ; } }
Send debug data message to client
@param mixed $data
@param null|string $tags Tags separated by dot, e.g. "low.db.billing"
@param int|array $ignoreTraceCalls Ignore tracing classes by name prefix `array('PhpConsole')` or fixed number of calls to ignore
Send debug data message to client