473,326 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Any method to trace function and execution calls?

I've had to do some work with an existing PHP application.
Unfortunately, the app is pretty big, undocumented, and heavily (and in
some places, inappropriately) abstracted. I've spent a day with it and
am having a difficult time just trying to understand who calls what and
passes what information to functions overloaded from a class called via
a three-level-deep require...

Is there any method of logging or displaying some kind of call trace as
a php program is run? That way I could at least tell which functions
are getting called with which arguments.

Thanks for any help with this.

--
Darren Dunham dd*****@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
Dec 8 '06 #1
4 3603
Darren Dunham wrote:
I've had to do some work with an existing PHP application.
Unfortunately, the app is pretty big, undocumented, and heavily (and in
some places, inappropriately) abstracted. I've spent a day with it and
am having a difficult time just trying to understand who calls what and
passes what information to functions overloaded from a class called via
a three-level-deep require...

Is there any method of logging or displaying some kind of call trace as
a php program is run? That way I could at least tell which functions
are getting called with which arguments.

Thanks for any help with this.
syslog

or you can try to recompile PHP with xdebug <http://www.xdebug.org/>

--Yan
Dec 8 '06 #2
CptDondo wrote :
Darren Dunham wrote:
>I've had to do some work with an existing PHP application.
Unfortunately, the app is pretty big, undocumented, and heavily (and in
some places, inappropriately) abstracted. I've spent a day with it and
am having a difficult time just trying to understand who calls what and
passes what information to functions overloaded from a class called via
a three-level-deep require...

Is there any method of logging or displaying some kind of call trace as
a php program is run? That way I could at least tell which functions
are getting called with which arguments.

Thanks for any help with this.

syslog

or you can try to recompile PHP with xdebug <http://www.xdebug.org/>

--Yan
Why recompile ? It works well as an extension :p

Use http://kcachegrind.sf.net/ to read xdebug generated files :)

--
Naixn
http://fma-fr.net
Dec 8 '06 #3
naixn wrote:
>or you can try to recompile PHP with xdebug <http://www.xdebug.org/>

--Yan

Why recompile ? It works well as an extension :p

Use http://kcachegrind.sf.net/ to read xdebug generated files :)
Maybe on your system.... :-) Unfortunately on my embedded box
extensions don't work and have to be compiled in.

Good point, though. I never thought about that.

--Yan
Dec 8 '06 #4
naixn <na***@won-fma.comwrote:
CptDondo wrote :
>Darren Dunham wrote:
>>>
Is there any method of logging or displaying some kind of call trace as
a php program is run? That way I could at least tell which functions
are getting called with which arguments.

Thanks for any help with this.

syslog

or you can try to recompile PHP with xdebug <http://www.xdebug.org/>

--Yan
Why recompile ? It works well as an extension :p
Use http://kcachegrind.sf.net/ to read xdebug generated files :)
Thank you both. That looks like it will be very useful.

--
Darren Dunham dd*****@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
Dec 8 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Max Ischenko | last post by:
Hi, I wrote simple implementation of the "synchronized" methods (a-la Java), could you please check if it is OK: def synchronized(method): """ Guards method execution, similar to Java's...
6
by: Martin | last post by:
I'd like to be able to get the name of an object instance from within a call to a method of that same object. Is this at all possible? The example below works by passing in the name of the object...
0
by: Mike Schilling | last post by:
I have some code that calls methods reflectively (the method called and its parameters are determined by text received in a SOAP message, and I construct a map from strings to MethodInfos). The...
1
by: Mark Miller | last post by:
I just recently started getting the above error on a page I am posting MULTIPART/FORM-DATA. We have SoftArtisans FileUp component and Filter installed on the server in question and up until a day...
3
by: Jeremy | last post by:
While working with ASP.NET I've sometimes encountered errors in my applications, but I've always known exactly why I'm getting the error and have been able to fix it. So I've never needed to...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
6
by: Mirek Endys | last post by:
Hello all, another problem im solving right now. I badly need to get typeof object that called static method in base classe. I did it by parameter in method Load, but i thing there should be...
4
by: Michael | last post by:
Hi, I'm having difficulty finding any previous discussion on this -- I keep finding people either having problems calling os.exec(lepev), or with using python's exec statement. Neither of...
10
by: DoB | last post by:
As in the subject... What is an overhead cost conneted with using the /d:TRACE switch? The Trace class is a convenient and configurable logger, but it requires the executable to be built with...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.