I cannot figure out where an application is exiting. I'd rather not bother with a debugger, and adding declare(ticks=1); to each file would be a pain (I'm not in the mood for dealing with sed). A similar question has been asked, but not with these constraints.
How can I figure out where the code is exiting?
Clarification:
While this question is similar to Fastest way to determine where PHP script exits, I'd like to find a solution that works without a debugger. I know how to do this with a debugger, but I don't always have access to such tools.
exit($code)to specify a code the program returns, and check that.