{"record":{"id":"93042895d60d963a","repo":"phacility/phabricator","slug":"you-must-specify-which-daemon-to-debug","errorCode":null,"errorMessage":"You must specify which daemon to debug.","messagePattern":"You must specify which daemon to debug\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/daemon/management/PhabricatorDaemonManagementDebugWorkflow.php","lineNumber":45,"sourceCode":"            'help' => pht('Maximum pool size.'),\n            'default' => 1,\n          ),\n          array(\n            'name' => 'as-current-user',\n            'help' => pht(\n              'Run the daemon as the current user '.\n              'instead of the configured %s',\n              'phd.user'),\n          ),\n        ));\n  }\n\n  public function execute(PhutilArgumentParser $args) {\n    $argv = $args->getArg('argv');\n    $run_as_current_user = $args->getArg('as-current-user');\n\n    if (!$argv) {\n      throw new PhutilArgumentUsageException(\n        pht('You must specify which daemon to debug.'));\n    }\n\n    $config = array(\n      'class' => array_shift($argv),\n      'label' => 'debug',\n      'pool' => (int)$args->getArg('pool'),\n      'argv' => $argv,\n    );\n\n    return $this->launchDaemons(\n      array(\n        $config,\n      ),\n      $is_debug = true,\n      $run_as_current_user);\n  }\n","sourceCodeStart":27,"sourceCodeEnd":63,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/daemon/management/PhabricatorDaemonManagementDebugWorkflow.php#L27-L63","documentation":"Error \"You must specify which daemon to debug.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/daemon/management/PhabricatorDaemonManagementDebugWorkflow.php:45 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}