Generate PHP (X)debug Step Filter configuration
See original GitHub issueIs your feature request related to a problem? Please describe.
I’m always frustrated when stepping through an Xdebug session in Magento 2 because I encounter tons of interceptor or proxy files due to the Plugin system. PhpStorm offers a way to skip file paths when stepping through a debugger session, which can be configured under Settings > PHP > Debug > Step Filter > Skipped Paths.
Describe the solution you’d like (*)
It would be great to have a button in the Magento 2 PhpStorm plugin (just like the Regenerate URN button) to generate this configuration.
Describe alternatives you’ve considered
I created a hacky magerun2 addon to generate this configuration and append it to the .idea/php.xml
file, see this tweet; https://twitter.com/PeterJaap/status/1456621266782281735
Additional context
I’ve already done some preliminary work, such as adding the button itself;
But my limited Java knowledge is preventing me from finishing this myself without investing tons of hours. While I’m sure any of the devs here can easily complete this functionality in considerably less time.
See my unfinished PR here; https://github.com/magento/magento2-phpstorm-plugin/pull/737
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:7 (2 by maintainers)
Top GitHub Comments
@peterjaap, any updates here?
We cannot gain expected results (manually) without your help.
Regards,
@bohdan-harniuk I just had time to look at it again, you are correct; it doesn’t work. I could’ve sworn it did work when I worked on it in November… feels like a PhpStorm bug.