does Autocompletion of local variables in "Evaluate expression" dialog exists?
I want to know if there is such support in phpstorm to autocomplete php local variables in the evaluate expression window, I say this because if I stop in the debug mode with some local variables I can't get them autocompleted in the evaluate expression windows, and I use that feature a lot. As a bonus point it could infer from the actual runtime data the dinamically added properties, the actual methods belonging to dinamically created objects, etc. What do you think?
请先登录再写评论。
Hi, Jaime,
Please vote - http://youtrack.jetbrains.com/issue/WI-4265
Please note that it is quite dangerous to analyze runtime information (especially methods and field) because it can lead to undesirable side effects.
Thanks for feedback!
What kind of side effects?? Well anyway it would be for runtime information, but Evaluate expression windows doesn't even have the autocompletion the editor has
Jaime,
Because of magic methods we can't check fields and methods of any instances (we would like to avoid any calls hidden from users).
Thank you for feedback!
Could you please explane it to me better? What kind of magic methods have side effects??
Jaime,
Generally any method or function call can lead to side effects. We don't perform calls in background.
Please describe a specific case and I will try to explain why it could be dangerous.
Thank you for feedback!