breakpoint on every access of a class in PHPStorm
Hello,
how can I see every access/usage of a class when using xdebug and PHPStorm? The only way I've found is to make a breakpoint on every single line, which is annoying.
Thank you for helping.
请先登录再写评论。
Not sure if that's possible or if I'm following you. Could you please describe your use case in details?
I have a class I want to analyse when and how it is used in a framework. So I want to see every usage of it when process goes into that class.
I would suggest adding classes variables in a "watches" list, please see https://www.jetbrains.com/help/phpstorm/adding-editing-and-removing-watches.html and https://www.jetbrains.com/help/phpstorm/debug-tool-window-watches.html
But that is only a part. I also want see every usage of methods too and it should break then.
It seems that currently there's no way.
Conditional breakpoints are still breakpoints, and exception breakpoints imply class modification.
Please submit a feature request: https://youtrack.jetbrains.com/newIssue?project=WI