/* istanbul ignore next: debug messaging is not tested
187467
function end (nextState) {
  if (__DEBUG__) {
    if (console.group) {
      displayBuffer.next = colorFormat('next history', colors.nextState, nextState)
    } else {
      displayBuffer.next = ['next history', nextState]
    }
    printBuffer()
  }
}
661028
def DEBUG(msg, *args, **kwargs):
    """"""
    logger = getLogger("DEBUG")
    if len(logger.handlers) == 0:
        logger.addHandler(StreamHandler())
    logger.propagate = False
    logger.setLevel(logging.DEBUG)
    logger.DEV(msg, *args, **kwargs)
91493
function handleMessageFromMainThread(message) {
    var kind = message.data.kind;
    var payload = message.data.payload;

    if (kind === messageKind.init) {
      graph = fromjson(payload.graph);
      var options = JSON.parse(payload.options);

      init(graph, options);
    } else if (kind === messageKind.step) {
      step();
    } else if (kind === messageKind.pinNode) {
      pinNode(payload.nodeId, payload.isPinned);
    } else if (kind === messageKind.setNodePosition) {
      setNodePosition(payload.nodeId, payload.x, payload.y, payload.z);
    }
    // TODO: listen for graph changes from main thread and update layout here.
  }
999914
private function debug($message)
    {
        if (1 < func_num_args()) {
            $message = call_user_func_array('sprintf', func_get_args());
        }
        $this->logger->addDebug($message);
    }
425164
public static void debug(Object message) {
		log(Level.DEBUG, message, null, (Object[])null);
	}
543398
public void debug(String message, Map<String, Object> custom) {
    debug(null, custom, message);
  }
31871
function checkMsg(msg, protos) {
    if (!protos || !msg) {
        console.warn('no protos or msg exist! msg : %j, protos : %j', msg, protos);
        return false;
    }

    for (const name in protos) {
        if (protos.hasOwnProperty(name)) {
            let message;
            const proto = protos[name];

            // All required element must exist
            switch (proto.option) {
            case 'required' :
                if (typeof (msg[name]) === 'undefined') {
                    console.warn('no property exist for required! name: %j, proto: %j, msg: %j', name, proto, msg);
                    return false;
                }
            case 'optional' :    // eslint-disable-line
                if (typeof (msg[name]) !== 'undefined') {
                    message = protos.__messages[proto.type] || Encoder.protos[`message ${proto.type}`];
                    if (!!message && !checkMsg(msg[name], message)) {
                        console.warn('inner proto error! name: %j, proto: %j, msg: %j', name, proto, msg);
                        return false;
                    }
                }
                break;
            case 'repeated' :
                // Check nest message in repeated elements
                message = protos.__messages[proto.type] || Encoder.protos[`message ${proto.type}`];
                if (!!msg[name] && !!message) {
                    for (let i = 0; i < msg[name].length; i++) {
                        if (!checkMsg(msg[name][i], message)) {
                            return false;
                        }
                    }
                }
                break;
            default:
                break;
            }
        }
    }

    return true;
}
1253885
public void debug(final Marker marker, final String message) {
        log.debug(marker, sanitize(message));
    }
854792
protected function debug($message, $args = array()) {
    if ($this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) {
        /** @noinspection HtmlUnknownTag */
        $this->output->writeln('<fg=green>'.sprintf($message, $args));
        }
    }
633894
public final void debug(Class sourceClass,
                            String message,
                            Object object) {
        internalDebug(null,
                      sourceClass,
                      message,
                      object);
    }
1072844
public function debug($message)
    {
        if ( ! $this->getOutput()->isDebug()) {
            return null;
        }

        if (func_num_args() > 1) {
            $message = vsprintf($message, array_slice(func_get_args(), 1));
        }

        $this->getOutput()->writeln($message);
    }
1037919
public void debug( String msg, Throwable t )
    {
        if( m_delegate.isDebugEnabled() )
        {
            m_delegate.debug( msg, t );
        }
    }
1009275
public function debug($message)
    {
        Dispatcher::getInstance()->dispatch(
            'system.debug',
            DebugEvent::createInstance($this)
                ->setMessage($message)
        );
    }
248908
public final void debug(Object message) {

        if (isLevelEnabled(SimpleLog.LOG_LEVEL_DEBUG)) {
            log(SimpleLog.LOG_LEVEL_DEBUG, message, null);
        }
    }
324529
function (sequenceIndex, requestType, data) {
		'use strict';
		var message = "Request #" + (sequenceIndex + 1) + " (" + requestType + ")";
		if (data.message) {
			message += ": " + data.message;
		}
		data.message = message;
		
		// the message has information that should be displayed by the test runner
		data.generatedMessage = false;
		
		data.name = "AssertionError";
		throw new AssertionError(message, data);
	}
67265
@Deprecated
    public static void logDebug(String tag, String message) {
        LogManager.d(tag, message);
    }
1292287
public void debug(Object message, Throwable t) {
        doLog(Level.DEBUG, FQCN, message, null, t);
    }