This is way off topic, but it leads me to a tool I once used which saved my life on more than one occasion. It was designed for dBaseII which I used to teach at TAFE colleges in the 80's. (That shows my age!).
It was called Set Talk On and it worked in conjunction with another command which I think was called Step. Keep in mind that this was in the days of CP/M and everything was an ASCII character. Even so, I still think some smart person could develop something for PHP/JAVA and the like to help debug scripts a lot easier than it's currently being done.
You could start anywhere as long as it was the start of a file. Step allowed you to step through one line of code at a time and Talk presented the result of that action (if any) on the right hand side. Talk would literally build a table element by element, and place everything inside that table in the correct place until the completed table or page appeared.
In the case of a form, it would build each field and if you were stepping through Append or Edit mode, you could physically enter data at that point.
If there was a coding error, such as an array not producing the correct data, you could instantly see the problem. It didn't display design errors unless they were horrific, thus it was essential to work with data you could remember, such as names or numbers.
dBaseII was simple by comparison to today's scripts and I can't even recall if it used Include files. Logically I can't see why this can't be replicated for today's programming environment. Chrome's Inspect module comes close, but I guess for security reasons it only does CSS as far as I can see. I think it would be fantastic if there was a program that worked something like Inspect, but covered the PHP/JAVA code as well.
Does anyone know of anything like it?