Skip to content

Generate PHP (X)debug Step Filter configuration #736

@peterjaap

Description

@peterjaap

Is 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;

image

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; #737

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions