In the code below, the string "hi" is never outputted.
The MainDispatcher
class is just the boostrap of a massive framework with a large application underneath it, which was "working fine until the other day" (I have tried to git-bisect
it but that's a story for another post).
How can I find out where the code is silently terminating execution?
require_once "autoload/classes.php";
try {
$main = new MainDispatcher(root());
if ($main->httpHeaders()) {
$main->handleRequest();
}
echo 'hi';
}
catch(Exception $e) {
echo 'hi';
Log::error($e, $main->config->traceLog);
}