Welcome Guest, Not a member yet? Register   Sign In
Does ci offer a call stack

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

[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.


It's a great little feature I do add!

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.

Theme © iAndrew 2016 - Forum software by © MyBB