getDebugFilePath())) { return new Aphront404Response(); } $request = $this->getRequest(); $user = $request->getUser(); ob_start(); require_once $this->getDebugFilePath(); $out = ob_get_clean(); $response = new AphrontWebpageResponse(); $response->setContent(hsprintf('
%s', $out)); return $response; } private function getDebugFilePath() { $root = dirname(phutil_get_library_root('phabricator')); return $root.'/support/debug.php'; } }