vscode-php-debug icon indicating copy to clipboard operation
vscode-php-debug copied to clipboard

Step filter to skip files

Open jmcbee opened this issue 7 years ago • 3 comments

PHP version: v7.2.6 XDebug version: v2.6.0

Hello,

Is it possible to skip certain files when stepping over? It seems the ignore option is only for ignoring errors.

https://bugs.xdebug.org/view.php?id=901#bugnotes

Here's the equivalent on PHPStorm: https://www.jetbrains.com/help/phpstorm/step-filters.html

jmcbee avatar Oct 07 '18 04:10 jmcbee

I need, Step Into to skip files outside of project, and step into next line of code inside of the open project. Or implement a new Step Into button.

When debugging WordPress plugin, if we click jump into it jumps into WordPress core function do_action or apply_filters, which is hard to navigate. What do I expect is to ignore the core function and jump into registered action or filter directly.

alimuzzaman avatar May 03 '19 17:05 alimuzzaman

This would be very useful, e.g. to ignore autoload when stepping into a function call.

jacobweber avatar Jun 27 '21 16:06 jacobweber

The issue is not that straight forward. If I want to solve this in the extension code, I would need to perform a "step in", check the path and again perform a "step in" until I landed on a path that is not ignored. The concept is called justMyCode (https://code.visualstudio.com/docs/python/debugging#_justmycode) . I have this feature in mind, but will discuss it with Derick first what the best option for it could be.

zobo avatar Sep 20 '21 11:09 zobo

Any news on the subject ?

Boffice avatar Sep 26 '22 19:09 Boffice

No sorry, not yet. There is still no feasible way to implement this and I'm currently dealing with cloud support.

zobo avatar Sep 29 '22 21:09 zobo

Implemented in #874 . Will be merged and released shortly.

zobo avatar Dec 28 '22 23:12 zobo