Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

have xdebug skip certain functions when debugging

so basically I'm using Zend Framework's autoloader to autoload my functions. But because of this whenever I'm debugging, if I call any function xdebug would go to the autoload function before going to the actual function that is being called.

So if I call the function func(), it will first go to autoload() and then func() which increases debugging cost in terms of time, etc

Ideally if I call func(), it should go directly to func() while still using the autoloader.

Is there a way to specify xdebug (or using any PHP/Zend hack etc) to always skip a certain function (in this case my autoload function) when I'm debugging?

like image 366
kamikaze_pilot Avatar asked Oct 27 '11 05:10

kamikaze_pilot


People also ask

What is Xdebug trace?

Xdebug allows you to log all function calls, including parameters and return values to a file in different formats. Those so-called "function traces" can be a help for when you are new to an application or when you are trying to figure out what exactly is going on when your application is running.


1 Answers

In eclipse with pdt in preferences: PHP -> Debug -> Step Filtering click Add Filter, I added Autoloader.inc and no longer have to go through it

See step_filtering_preferences for more visual instructions

like image 176
uncreative Avatar answered Sep 19 '22 13:09

uncreative