What tools facilitate the study of someone else's code?

Hello! Are there any tools that help to study someone else's code, help you debug the code? Now I use xdebug, debug_backtrace.

For example, there is this code:

function a($value)
{
b($value);
}

function b($value)
{
 c($value * 2);
}

function c($value)
{
 return $value / 2;
}

a(10);

For example, all these functions are declared in different files and calling a() too. In order to get the call stack do this:

function c($value)
{
var_dump(debug_backtrace());
 return $value / 2;
}

But it is in my opinion not very convenient since you still have to run on all files to view the body of these functions. Maybe it is some kind of tool that returns not only the call stack, but from the body of each function, and in General all of the information that will help to make the overall picture?

In General, interested in any info/tools to help in parsing someone else's code and debug it. Thanks in advance!
June 3rd 19 at 20:22
3 answers
June 3rd 19 at 20:24
Solution
The linters/static code analyzers.
And high-quality IDE such as PHPStorm, - the process of Jogging to the body there is reduced to pressing a single hotkey.
My brother, senior developer at page also uses the storm. He praises her.
I write in Java and use IntelliJ IDEA from the same company, and also I like this IDE (and all its also praise and highlight). I wrote to the fact that if their environment for Java is good, and I think pykhy too bad. - dorian53 commented on June 3rd 19 at 20:27
and my dad's tractor. - glennie_Mer commented on June 3rd 19 at 20:30
, tracked or wheeled? - Zoey_Oberbrunner6 commented on June 3rd 19 at 20:33
on a red! - Austen.Thompson53 commented on June 3rd 19 at 20:36
brother's alive? - Lurline commented on June 3rd 19 at 20:39
June 3rd 19 at 20:26
Solution
If you are already using xdebug, set a breakpoint and watch the trace in the debugger.
Try to work in some decent IDE like PHPStorm, PHPEd or the other.
June 3rd 19 at 20:28
Solution
IDE

Find more questions by tags DebuggingPHP