Say you have a large PHP project and suddenly, when attempting to run it, you just end up with a blank page. The script terminates and you want to find exactly where that is with as little effort as possible.
Is there a tool/program/command/IDE that can, on PHP script termination, tell you the location of a script exit?
Note: I can’t mark my own post as ‘accepted answer’ so look at the bottom to see my solution. If you come up with a better solution I will mark your post as the answer.
With some inspiration from the nonworking but still right-direction answer from RoBorg, I used the following code in the beginning:
And then I made a global conditional breakpoint (global = breakpoint is evaluated on each row), exploiting the fact that it can run code trough eval(), with the following ‘condition’:
Probably not fast but does the trick! Using this I was able to determine the exact file and line location that raised die(). (This example works in NuSphere.)