question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate PHP (X)debug Step Filter configuration

See original GitHub issue

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; https://github.com/magento/magento2-phpstorm-plugin/pull/737

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bohdan-harniukcommented, Feb 1, 2022

@peterjaap, any updates here?

We cannot gain expected results (manually) without your help.

Regards,

0reactions
peterjaapcommented, Apr 6, 2022

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation » Step Debugging - Xdebug
Xdebug's step debugger allows you to interactively walk through your code to debug control flow and examine data structures.
Read more >
Set up Xdebug for Local PHP Development - YouTube
Step Into Debugging with PhpStorm · PHP For Beginners · What exactly is NULL? · Setup Xdebug WITH DOCKER and debug in VSCode...
Read more >
Debug with a PHP web page debug configuration - JetBrains
A PHP Web Page debug configuration tells PhpStorm the URL address to access the starting page of the application, the browser to open...
Read more >
First steps to start debugging with Xdebug - Kirby CMS
The first step to configure Xdebug is to find the .ini file for your current PHP version. Here again, you can either find...
Read more >
How to Set Up PHP Debugging with PhpStorm, Xdebug, and ...
Its task is to filter a European-format currency string, such as -1.432.156,54 into its integer ... Setting Up Step-Through Debugging in PHP.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found