Reputation: 18649
I am using Eclipse with PHP and I am trying to trace back the calls functions and instantiations of classes to see why a certain piece of code was used.
The Eclipse interface is a bit cluttered. How do I see the function call trace? Is that possible to do?
Thanks, Alex
Upvotes: 0
Views: 1232
Reputation: 99
What you probably want is the Parameter stack, found in Show view under PHP Tools and Parameter stack.
Upvotes: 0
Reputation: 3611
This post of me can't be actually a solution but just wanted to share.
In addition to what's already answered (which enables call trace during runtime), PHP
plugin of Eclipse
called PDT
has a feature called Call Hierarchy
. However, it looks like this feature has not been implemented as of the latest version 3.1.
This is why I said my post isn't an answer, but I'm hoping that spreading the words like this would motivate the PDT
enter code here
plugin developers.
Upvotes: 0
Reputation: 401142
A possibily good solution would be to use a debugger, in step-by-step mode -- or by setting a breakpoint where you want to see the call-trace.
This will allow you to see variables and the call trace / history -- and, also, to go line by line into your source-code's execution.
About debugging and Eclipse, the following question + answers should be able to help : Good Free PHP debugger?
Upvotes: 2