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?
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With