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?

5 comments
Comment actions Permalink

Hi, Jaime,

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.

Please vote - http://youtrack.jetbrains.com/issue/WI-4265

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?

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!

0
Comment actions Permalink

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

0
Comment actions Permalink

Jaime,

What kind of side effects??

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!

0
Comment actions Permalink

Could you please explane it to me better? What kind of magic methods have side effects??

0
Comment actions Permalink

Jaime,

Could you please explane it to me better? What kind of magic methods have side effects??

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!

0

Please sign in to leave a comment.