Questions tagged [debug-backtrace]

debug_backtrace() is a PHP function that prints the backtrace.

debug_backtrace() is a PHP function that prints the backtrace. A backtrace is a summary of how your program got where it is. It shows one line per call, for many calls, starting with the currently executing call (call zero), followed by its caller (call one), and on up the stack.

67 questions
0
votes
2 answers

debug_backtrace - long parameter

I have the following function: function backtrace($Object=false) { $x = 0; foreach((array)debug_backtrace($Object) as $aVal) { $row[$x]['file'] = $aVal['file']; $row[$x]['line'] = $aVal['line']; …
0
votes
1 answer

How to "back trace" called functions on XCode

I can't figure out exactly where my code is crashing. It doesn't happen always. So, I guess that it would be very useful to check the callstack. But on XCode I can just see the these very low level callings. I can't reach any things that points to…
Eduardo Reis
  • 1,691
  • 1
  • 22
  • 45
0
votes
3 answers

How to generate a post facto backtrace?

When my KDE programs crash (which is pretty often :( ), I can generate a post-facto backtrace (I imagine it's not really post-facto, just that the errors are caught and saved) and use it to submit a bug report if I have the debug symbols installed. …
mmdanziger
  • 4,466
  • 2
  • 31
  • 47
0
votes
2 answers

Zend Framework 2 debug_backtrace()

I'm having hard time using ZF2 because I cannot use debug_print_backtrace() like I would use it normally. It is showing me huge amount of data from Zend\Mvc\MvcEvent object. Output looks something like this: #1 …
wormhit
  • 3,687
  • 37
  • 46
0
votes
3 answers

PHP use late static binding to get calling function?

Is it possible to get information (filename, line, function ...) of the calling function by using late static binding?
NaN
  • 3,501
  • 8
  • 44
  • 77
-1
votes
1 answer

PHP is my function called from echo, or sprintf

I want to look where the function is called. Is the function called inside a echo or sprintf? Then return, otherwise echo the content. I got this code (test.php):
-2
votes
1 answer

Cause for Segmentation Fault?

I've written some code for a scanner in C++, but I keep receiving a segmentation fault. The strange thing is that the segmentation fault happens at the completion of the code. I think it has to do with my scan function and the use of file.get() in…
1 2 3 4
5