Is phpstrom debug bugs? php script miss class property in variables windows


Hi, guys.

When i try debug this example:  and set a breakpoint at , but i can not find some object propertys(eg: now) in the variables windows.


My phpstorm version is 2019.1 and xdebug version is 2.7.1.


Hi, Dmitry Tronin

I have tried but could not find it.

Maybe it's a xdebug problem.

Thank you.



I just had a look, and this is not an Xdebug problem per-sé. The inherited Driver class implements a __debugInfo() method which does not return the object's standard properties, but instead a different set: — and that is the set that PhpStorm through Xdebug shows in its variable panel.

I'm not quite sure how to address this, but I've filed a ticket:





If you cannot see "now" field anywhere in Xdebug log ... report that to Xdebug author at , at least there you can get a definite answer if it's a bug or some else (based on your screenshot those fields should be listed there).



1) I see exactly the same in 2019.1.1 and PHP 7.2.17 with Xdebug 2.7.1. Xdebug 2.6.1 with PHP 7.0.33  adds few other fields (as different "CallableMaker" trait is used).. but still no "now" visible.

2) If you add `$this->now` to watches you will be able to see it's value once it's assigned.

3) Xdebug log reports only 8 children. PhpStorm shows correct info here.

<property name="$this" fullname="$this" type="object" classname="Amp\Loop\NativeDriver" children="1" numchildren="8" page="0" pagesize="100">

Maybe some specific option needs to be set (no ideas)?



Oh .. it has been already discovered what's causing it

Took me time to test it myself and forgot to refresh the page before posting...


@derick Thank you for your attention to this matter. I do appreciate it.


@andriy Bazanov Thank you for taking the trouble to help me. I do appreciate it.


This is fixed in the just released Xdebug 2.7.2:


@derick now you will be confused when you use xdebug with implemented __debugInfo() because you will never enter into __debugInfo() this fix was broke standard language behaviour.


Please sign in to leave a comment.