From 82080b3462c9e3da7b79cd1a255952f9b9d80b15 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=2E=20Rene=CC=81e=20Beach?= <splendidnoise@gmail.com>
Date: Wed, 15 Jan 2014 23:51:53 -0500
Subject: [PATCH] Set debug print_r to TRUE.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: J. Renée Beach <splendidnoise@gmail.com>
---
 core/includes/common.inc | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/core/includes/common.inc b/core/includes/common.inc
index ff70536..3a7fb16 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -5029,10 +5029,11 @@ function _drupal_flush_css_js() {
  *   Label to prefix the data.
  * @param $print_r
  *   Flag to switch between print_r() and var_export() for data conversion to
- *   string. Set $print_r to TRUE when dealing with a recursive data structure
- *   as var_export() will generate an error.
+ *   string. Set $print_r to FALSE to use var_export() instead of print_r().
+ *   Passing recursive data structures to var_export() will generate an error.
  */
-function debug($data, $label = NULL, $print_r = FALSE) {
+function debug($data, $label = NULL, $print_r = TRUE) {
+
   // Print $data contents to string.
   $string = String::checkPlain($print_r ? print_r($data, TRUE) : var_export($data, TRUE));
 
-- 
1.8.2

