E
E
Elmechador2017-09-20 10:34:32
xdebug
Elmechador, 2017-09-20 10:34:32

Xdebug and black boxing, is it possible and how to set it up?

Is it possible (and how) to configure XDEBUG so that debugging steps on some scripts are not displayed, but immediately go to the next (tracked), it seems to be called "black box". In the chrome debugger for JS, for example, this is in the form of an exception, for example, the debugger jumps on popular libraries like JQuery, so as not to see all the magic inside the library, but to debug exactly your code.
For example, I am currently debugging a Wordpress plugin and watching the execution of the script step by step and I see how the script runs not only through plugin scripts, but also through WP core scripts (well, since the plugin, of course, uses core functions). So here's how to make sure that I don't see these steps on the side of the WordPress core, but only follow the steps inside the script?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PrAw, 2017-09-20
@Elmechador

1. https://www.jetbrains.com/help/phpstorm/skipped-pa...
2. If there is no such wonderful editor - look in your IDE for the buttons to move -
Step OVER - step over the function call - will help not to go into the wrong code
Step INTO - step with entering the function - enter your code
Step OUT - exit the function - exit quickly if it happened.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question