php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #11409 Debug function: get caller function stack
Submitted: 2001-06-11 17:38 UTC Modified: 2005-09-29 21:02 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: bachi2 at insign dot ch Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.5 OS: (all)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bachi2 at insign dot ch
New email:
PHP Version: OS:

 

 [2001-06-11 17:38 UTC] bachi2 at insign dot ch
It would be a *HUGE* debugging help, if there would be a function that returns the current caller function stack. So on a given position or in an error condition, one could just output the nested function calls to this position. 

Debugging without is quite hard if you have utility functions/methods that are used widely in a project. If they produce an error because of the params, how can u find out which function/method called it (thus must be debugged)?

Such a debugging function would just be great - imho of better use than the variables snapshot with the current debug functions.

Regards, Martin Bachmann


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-28 20:56 UTC] yohgaki@php.net
Use APD for now.
 [2005-09-29 21:02 UTC] visualmind@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

This feature has been fulfilled starting by version 4.3.0 You can use debug_trace www.php.net/debug_backtrace
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 10 23:01:29 2025 UTC