CodeIgniter Forums
Does ci offer a call stack - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Does ci offer a call stack (/thread-26619.html)



Does ci offer a call stack - El Forum - 01-18-2010

[eluser]MyDarkPassenger[/eluser]
Is there a way with ci to find the current call stack at a point in the program along with the inputs that get passed to each function? For example if I have a user class with a setName function I'd like to be able to call a function in setName and get something like the following:

class function argument line type
main index 6 controller
user setName "gene" 4 model


Does ci offer a call stack - El Forum - 01-19-2010

[eluser]Myles Wakeham[/eluser]
Yes, we get this with xDebug & CI. If you are using xDebug and you get an error, it will give you the entire call stack to help trace where is coming from. I don't think this is specific to CI though.

Myles


Does ci offer a call stack - El Forum - 01-19-2010

[eluser]nZac[/eluser]
It's a great little feature I do add!


Does ci offer a call stack - El Forum - 01-20-2010

[eluser]MyDarkPassenger[/eluser]
Thanks for the help, I've used XDebug before, it is an awesome tool, however from what I remember it shows how ci calls the code behind the scenes to make it work with MVC not the way you'd call the functions. It also doesn't allow me to call the stack when I want to, I believe just when it hits an error? It's been awhile though since I've explored it I'll have to try some things.