View Issue Details

IDProjectCategoryView StatusLast Update
0002323XdebugStep Debuggingpublic2025-03-09 16:08
ReporterRexSchrader Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.2.2 
Fixed in Version3.4.2 
Summary0002323: xdebug_notify() does not respect xdebug.var_displaymax* Settings
Description

When outputing arrays with nested arrays via xdebug_notify, I'm expecting to see multiple levels of output. Instead I'm only seeing a depth of 1. I update the var_display_max_depth to use a larger depth and then the negative value to have no limit, but it doesn't change the output.

At very least it should be outputting at a depth of 3, the default.

I don't know if this is a function of PHPStorm, which I am using to view the output, or if it's a function of XDEBUG.

Steps To Reproduce

Test Code:

$test = [
    [
        'foo' => 'bar'
    ]
];

xdebug_notify("\nWithout Setting");
xdebug_notify($test);

ini_set('xdebug.var_display_max_depth', -1);
ini_set('xdebug.var_display_max_children', 256);
ini_set('xdebug.var_display_max_data', 1024);

xdebug_notify("\nWith Setting");
xdebug_notify($test);

Output:

C:/projects/engine-31/bugtest.php:10:
string(16) 
Without Setting
C:/projects/engine-31/bugtest.php:11:
array(1) {
  [0]=>
  array(1) {
  }
}
C:/projects/engine-31/bugtest.php:17:
string(13) 
With Setting
C:/projects/engine-31/bugtest.php:18:
array(1) {
  [0]=>
  array(1) {
  }
}
TagsNo tags attached.
Operating SystemWindows 11
PHP Version8.0.20-8.0.29

Activities

derick

2025-03-05 10:35

administrator   ~0007192

https://github.com/xdebug/xdebug/pull/999

derick

2025-03-07 12:09

administrator   ~0007200

This is now fixed in GIT for 3.4.2, of which I'll make a release soon.

Issue History

Date Modified Username Field Change
2025-02-28 21:17 RexSchrader New Issue
2025-03-05 10:35 derick Assigned To => derick
2025-03-05 10:35 derick Status new => assigned
2025-03-05 10:35 derick Note Added: 0007192
2025-03-07 12:09 derick Status assigned => closed
2025-03-07 12:09 derick Resolution open => fixed
2025-03-07 12:09 derick Note Added: 0007200
2025-03-09 16:00 derick Fixed in Version => 3.4dev
2025-03-09 16:08 derick Fixed in Version 3.4dev => 3.4.2