[xdebug-general] xdebug.trace_format=1 excludes assignments with xdebug.collect_assignments=1

From: Taylor Basilio <tbasilio[@]codingavenue.com>
Date: Thu, 5 Nov 2015 15:17:18 -0800


I'm trying to generate a computer-friendly trace that captures variable
assignments. It appears that* xdebug.trace_format=1* simply excludes
assignments even when *xdebug.collect_assignments=1* is present, but when
*trace_format=0*, assignments are correctly included.

php -v
PHP 5.5.30 (cli) (built: Oct 1 2015 09:29:18)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend
    with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans

*Sample command:*
php -d xdebug.collect_params=4 -d xdebug.collect_assignments=1 -d
xdebug.collect_return=1 -d xdebug.trace_format=1 -d
xdebug.trace_output_dir=./ -d xdebug.var_display_max_children=-1 -d
xdebug.var_display_max_data=-1 -d xdebug.var_display_max_depth=-1 test.php

*Sample PHP script*: https://gist.github.com/tbasilio/72bf26f46c536fa65ada
*trace_format=1 output*:
https://gist.github.com/tbasilio/eb90c63642ffba34a468 - $bbb is nowhere to
be found
*trace_format=0 output*:
https://gist.github.com/tbasilio/b6410b4a1c3d58fcb8a1 - $bbb and other
assignments are present

I would for trace_format=1 to include variable assignments, but if this
isn't something feasible I can try parsing the human-friendly output for my

Any insight or help would be appreciated.

Thank you!

- Taylor
Received on Thu Nov 05 2015 - 23:17:20 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST