-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant expand/inspect objects in Watch but can in Variables #804
Comments
Thanks for the report. I'll look at it asap |
I just discovered the xdebug settings parameters for launch.json. When I set max depth to a higher number, I can then expand $bp. However, I still can't see $bp->data in the Watch panel. I tried making max_data extremely high (thinking perhaps it had run out of space) but that didn't help
I'm glad to have found this because it also solves my issue with the children being limited. I'll explore the other settings as well. But the $bp->data issue seems worth investigating. Though, your documentation says this about max_depth Thanks! |
Hi! Regarding drill down. The Watch pane currently uses Regarding the When the variable is inspected this is a small part of the response:
I see here that this is a private field and so evaluating A way around this would be to change the internal logic of Watch, so that it would try to use Indeed you can write anything in the Watch pane, so the logic would need to be really smart on when to use I will have a look at it. I, sadly, don't have a solution for you at the moment - aside from changing the property to public... |
Thanks very much for looking into this so quickly! That all makes sense. I think my problem is largely solved just from changing the max_depth setting - I can very easily just watch $bp and then drill down into $bp->data from there. So, don't put any more effort into this unless you think that it might be relevant to broader changes that you already have in mind. Thanks again! |
I'm creating a new issue here to follow-on from a comment I made on this closed issue: #52
I can drill-down into objects in the Variables pane, but not in Watch. I can't expand $bp->data and trying to watch that directly just returns null.
PHP version: 7.4.29
Xdebug version: 3.1.4
VS Code extension version: 1.25.0
Your launch.json:
Xdebug php.ini config:
<style> </style>Xdebug logfile (from setting
xdebug.log
in php.ini): I cant create one - level 7 doesnt show anything relevant and level 10 creates an 8GB file.VS Code extension logfile (from setting
"log": true
in launch.json):phpdebuglog.txt
Code snippet to reproduce:
In my case need to install buddypress, but I suspect it happens for any object.
The text was updated successfully, but these errors were encountered: