public static function debug(array $strings, array $placeholders = [])
    {
        // Initialize messages storage.
        if (!isset($_SESSION[__TRAIT__])) {
            $_SESSION[__TRAIT__] = [];
        }

        // Mark debug message.
        array_unshift($strings, '<question>DEBUG:</question>');

        $_SESSION[__TRAIT__][] = new Message('comment', 4, $strings, $placeholders, (bool) getenv('BEHAT_DEBUG'));
    }
public static function debug(array $strings, array $placeholders = [])
    {
        // Initialize messages storage.
        if (!isset($_SESSION[__TRAIT__])) {
            $_SESSION[__TRAIT__] = [];
        }

        // Mark debug message.
        array_unshift($strings, '<question>DEBUG:</question>');

        $_SESSION[__TRAIT__][] = new Message('comment', 4, $strings, $placeholders, (bool) getenv('BEHAT_DEBUG'));
    }
public static function debug ( array $ strings , array $ placeholders = [ ] ) { // Initialize messages storage. if ( ! isset ( $ _SESSION [ __TRAIT__ ] ) ) { $ _SESSION [ __TRAIT__ ] = [ ] ; } // Mark debug message. array_unshift ( $ strings , '<question>DEBUG:</question>' ) ; $ _SESSION [ __TRAIT__ ] [ ] = new Message ( 'comment' , 4 , $ strings , $ placeholders , ( bool ) getenv ( 'BEHAT_DEBUG' ) ) ; }
Store message for debugging.

@param string[] $strings
The lines to print. One item per line. Every item will be processed by sprintf().
@param string[] $placeholders
Placeholder values for sprintf().
Store message for debugging .