[xdebug-dev] svn: /xdebug/trunk/ xdebug_var.c

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Fri, 07 Jan 2011 15:35:18 +0000

derick Fri, 07 Jan 2011 15:35:18 +0000

Revision: http://svn.xdebug.org/cgi-bin/viewvc.cgi?view=rev&revision=3383&root=xdebug

Log:
- Added the size of arrays to the fancy output, so that you know how many
  elements there are.

Changed paths:
    U xdebug/trunk/xdebug_var.c

Modified: xdebug/trunk/xdebug_var.c
===================================================================
--- xdebug/trunk/xdebug_var.c 2011-01-05 23:24:51 UTC (rev 3382)
+++ xdebug/trunk/xdebug_var.c 2011-01-07 15:35:18 UTC (rev 3383)
@@ -1232,7 +1232,7 @@
                         myht = Z_ARRVAL_PP(struc);
                         xdebug_str_add(str, xdebug_sprintf("\n%*s", (level - 1) * 4, ""), 1);
                         if (myht->nApplyCount < 1) {
- xdebug_str_addl(str, "<b>array</b>\n", 13, 0);
+ xdebug_str_add(str, xdebug_sprintf("<b>array</b> <i>(size=%d)</li>\n", myht->nNumOfElements), 1);
                                 if (level <= options->max_depth) {
                                         if (myht->nNumOfElements) {
                                                 options->runtime[level].current_element_nr = 0;
Received on Fri Jan 07 2011 - 15:35:18 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST